Neki to ne shvaćaju, ali WordPress je integrirao mogućnost objavljivanja drugih feedova sa nekim značajkama koje nisu dostupne. U prošlosti sam pisao o tome kako objaviti feed bloga da dam pojačajte gustinu ključnih riječi na web lokaciji za poboljšanu optimizaciju pretraživača - ali ovo je kako to učiniti direktno u WordPressu.
WordPress je u svoj sustav ugradio keširanje svraka i RSS dostupna funkcija, fetch_feed:
- fetch_feed - dohvatite RSS feed sa URL-a sa automatskim predmemoriranjem (uključeno u rss_functions.php)
Ako želite, na primjer, dodati naših najnovijih 5 postova na vašu web lokaciju (kao što smo i učinili na Highbridge):
get_item_quantity (5); $ items = array_slice ($ rss-> get_items, 0, $ maxitems); endif; ?> Nema predmeta '; 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 FG | 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 dodataka na bočnoj traci 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