Neki to ne shvaćaju, ali WordPress je integrirao mogućnost objavljivanja drugih feedova s nekim značajkama koje nisu dostupne. U prošlosti sam napisao o tome kako objaviti feed bloga kako bih dao pojačati gustoću ključnih riječi na web mjestu za poboljšanu optimizaciju tražilice - ali ovo je kako to učiniti izravno u WordPressu.
WordPress je u svoje ugradio keširanje svraka i RSS dostupna funkcija, fetch_feed:
- dohvati_feed - dohvatite RSS feed s URL-a s automatskim predmemoriranjem (uključeno u rss_functions.php)
Ako želite, na primjer, dodati naših najnovijih 5 postova na vaše web mjesto (kao što smo i učinili na Highbridge):
get_item_quantity (5); $ items = array_slice ($ rss-> get_items, 0, $ maxitems); završi ako; ?> Nema stvari '; else foreach ($ stavke kao $ stavka):?> get_permalink() ); ?>' title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->get_date('j FY | g:i a') ); get_permalink() ); ?>' title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->get_date ('j FY | g: i a')); get_permalink() ); ?>' title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->?>'> get_permalink() ); ?>' title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->?> '> get_permalink() ); ?>' title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->get_title() ); get_permalink() ); ?>' title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->get_title ()); get_permalink() ); ?>' title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->?> get_permalink() ); ?>' title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->?>
Uredite svoj WordPress predložak (Dizajn> Uređivač tema) i postavite kôd tamo gdje želite da feed bude objavljen. Postoji i mnoštvo widgeta bočne trake koji će objaviti feedove i za vas.
You can republish your own content, too, not just others. I’ve done this for a while at SMJdesign since all it is a blog that is an aggregation of my four blogs. I prefer using FeedList plugin instead of the built in RSS functionality.
You can use this for a Twitter sideblog or anything that has an RSS feed!
Good to see you on the circle, Stephen! Curious of the advantages of the plugin over the built in features? Is it simply the interface? I like the fact that caching is built into the internal function – for high volume days/sites, that could come in handy!
Živjeli!
Doug
Brilliant – this is exactly what I need! I’ve been working on a WP MU site and I simply want the main blog to just show a page with a nice graphic for each of the blogs. Now, I can add in a couple posts under each graphic rather than have them hang out on the sidebar using the RSS widget.
Awesome, William!
The funny part is I was half-way down the road of implementing MagPie when I decided to check the WP site out to see how others might be doing it. Those folks at WP really do a fantastic job, don’t they?
Doug