Linklist with most recent blog at top? - rss

I would like to have a simple linklist of blogs with their latest entry, author, blog name, and date be listed in order of latest update. So, kinda like what Blogger has on their sidebars -- whenever they have linklists, it auto-reorders based on which blog has been updated recently (though it usually doesn't have summaries, just the title of the site).
What I'd like to do is plug in multiple RSS feeds into one place that just checks the latest entry in each feed and then reorders them
The magpie plugin or RSS plugin in EE currently only allows you plug in ONE feed. It will show the latest entry per blog if I repeat the magpie tags several times (one per blog), but that doesn't help with re-ordering, and also it's a bit messy.
Help? Thoughts?
UPDATE: I want to make sure that each blog is still featured even if the last post they've done is a year ago. A blog like that will be the last in the link list for example, while an entry/site updated this hour will be at the top. So for example, if I limit the linklist to 5, it's not going to show the 5 most recent entries, period, from just one site if that one site updated 5 times in one hour. It will show 1 recent entry per site.
Sample behaviour: like the Flickr Friends Page sorted by date and 1 photo per person. http://www.flickr.com/photos/friends/ Except this time, just titles of blog posts and the site they belong to, author, etc.

There is an RSS Aggregator EE Add-on available which combines feeds for you
http://devot-ee.com/add-ons/rss-aggregator
{exp:rss_aggregator:items feed_ids="6|7" limit="10" order_by="pub_date" order="desc" pub_date_format="m-d-Y g:ia" cache_timeout="60"}
<li>
{title}<br />
<small>{pub_date} - From {channel_title}</small><br />
</li>
{/exp:rss_aggregator:items}

You could do this using Yahoo! Pipes. In fact, I created one a bit ago: http://pipes.yahoo.com/pipes/pipe.info?_id=82e8b23b84bf2d6c3014f50c0f6b2f1d
Just call it with a comma-delimited list of RSS feeds and voila! It gives you the latest entry for all the RSS feeds, sorted in reverse chronological order.
Example:
http://pipes.yahoo.com/pipes/pipe.run?_id=82e8b23b84bf2d6c3014f50c0f6b2f1d&_render=json&feedurls=appleinsider.com.feedsportal.com/c/33975/f/616168/index.rss,feeds.foxnews.com/foxnews/latest?format=xml
So now that you have the feed's URL, you can pull out the individual entries using the REST module from Phil Sturgeon.
For those interested, here's how the pipe is setup:

Fairly sure Stash could handle this via set_list and get_list. I haven't tested this but perhaps something like:
{exp:channel:entries channel="feed_urls"}
{exp:magpie url="{url}" limit="1"}
{items}
{exp:stash:append_list name="feed_items"}
{stash:title}{title}{/stash:title}
{stash:pubdate}{pubdate}{/stash:pubdate}
{/exp:stash:append_list}
{/items}
{/exp:magpie}
{/exp:channel:entries}
{exp:stash:get_list name="feed_items" orderby="pubdate"}
<h3>{title}</h3>
<p>{pubdate}</p>
{/exp:stash:get_list}
https://github.com/croxton/Stash

What about using an entries loop with multiple channels, pulling lastest from that and stashing it. Then get the stash in the RSS feed? I think that would work.

You could probably do it with Datagrab because it lets you import XML feeds into your own site and then you'd be able to order them as EE channel entries.

Related

Woocommerce - Need to delete products with no association to a categories with SQL or plugin

Background:
I inherited a website with a tremendously bloated product database. There are around 260 actual products which are translated using WPML into English and French which should make it for a total of 520 posts (for each product there is one same SKU two different IDs). However the total count of products in published status is over 720.
I exported all my products and realized that there is a third instance of some products with the same SKU and yet another ID but they are not associated to any category i.e The 'Categories' field is empty.
These are not variants are just ghost instances of the parent products.
Problem to solve:
I need to get rid of those 'ghost' products that have no Categories association. (I do have the list of offender IDs as a CSV)
If possible I would like to understand what those extra products. Can they be untranslated versions of the listing? are they just corrupted/invalid records?
I can do SQL or plugin or whatever it takes.
Difference in Product Count that shows invalid products
Thanks!
I've solved the problem by using the CLI shell in WordPress.
By simply SSHing into the backend I used the following syntax
wp wc product delete <ID> for trashing the product and you can add the --force to permanently delete it.
Having the list of offender IDs I just simply wrote a shell script that executed all the commands sequentially.

WooCommerce Custom Attribute being indexed but shows no results

We're running WordPress 4.7, WooCommerce 2.6.9 and the Algolia 1.6.0.
We've got 7 indexes setup:
Searchable posts [searchable_posts]
Posts [posts_post]
Pages [posts_page]
Products [posts_product]
Brands [terms_product_brand]
Product Categories [terms_product_cat]
Full Code [terms_pa_full-code]
The first 6 all return results as expected but Full Code [terms_pa_full-code], although indexed returns no results. However, there should be several 100 if not 1000 as if a product has a Full Code it is set to be 'Visible on the product page'.
Because it's showing as something that can be indexed I'm assuming we don't need to do any custom coding so not sure why it wouldn't display any results?
Has anyone experienced anything similar
The terms_pa_full-code does only contain some metadata, not the values which are them correctly pushed as part of the product data if everything goes well.
You can then use values of that taxonomy as a facet to display a list of available options given a user search query.
You can also register for the Algolia plugin for WooCommerce here: https://community.algolia.com/wordpress/#woocommerce and get this setup for you in a few clicks.

How to get more feeds from RSS url?

Let's take for example the following rss-link:
http://yourdailygerman.wordpress.com/feed/
As you can see, the RSS publishs only 1 item at a time.
However, RSS Readers services like Feedly (and more), success to retrive more items:
http://feedly.com/index.html#subscription%2Ffeed%2Fhttp%3A%2F%2Fyourdailygerman.wordpress.com%2Ffeed%2F
I opened fiddler and I saw they have their own API (following "count" paramter as the items count to get), and I wonder - How they do that???
Thanks!
You can't get more item from a feed if it's the first time you fetch it... however (and this is what Feedly does!), you can store the content of today, so that when new items are added tomorrow, you have the items from today and tomorrow... etc. Eventually you'll have enough data!

Using custom wordpress taxonomies for aktivity-streams?

I'm working on a WordPress-Website with a project-custom post type. But the person I am doing this for, has some special, not very uninteresting questions and suggestions. I am not quite sure, weather this is possible, and if it is, than how I should do it:
I created a custom post type: projects. Its custom taxonomies are "genre"(tag), and "customer"(category). So, if you call a certain customer, you will get the customer-taxonomy page, with a little description of the customer, and all the posts, related to this customer. So far no problem, but he wants the posts to be ordered by genre. Genres means, Webdesign, Corporate Design, Printgraphics, etc..
Is it possible, to list all project-custom posts, related to the custom-taxonomy "customer", and order them by time and the custom-taxonomy "genre"?. It should look like..
Webdesign:
2012-05 - Projekt-title 2012-07 - other project title
print:
2012-04 - print project-title 2012-06 - any project-title
It is important, because He wants the Project-Posts to look like a activity-stream related to the customer, like social media services.
The other Questions is, weather I can somehow combine custom-taxonomies and standart post-taxonomies. The Idea is, to post a standard News-Article, writing about the new project Hes working on. And he wants this article to show up on the related customer page.
Is this possible? And if yes, how should I do it? If it isn't possible, is there any other good solution?

How to dynamically create rss feed?

I just created my first rss feed. it worked fine. got it validated. It is basic feed of my recent blog posts. I would like to know if i would dynamically url parameters..
feed would look like this .. http://www.website.com/feed/?category=php.rss...
should show the recent blog posts of category "php". if category changes to "jquery" should show recent posts in "jquery"
How can I build a feed with changing URL parameters or build individual feeds?
Of course.
Just get the category name of out of the query string (using whatever standard library you use for that in whatever language you are using), add that as a conditional to whatever method you use to get the data (hopefully some sort of ORM), then drop the results into whatever library you generate the RSS from, just as if it were all the entries.

Resources