Pull And Display Posts From Other Sites Part 1
I know of quite a few people who own a domain of their own names. So do I but there’s nothing on LynetteChandler.com 🙂 many have struggled what to do with this domain. One approach is to use it as a hub to showcase your different sites, blogs or projects and hopefully direct people to the bread and butter of your business. This can be accomplished easily using good old fashioned static HTML. But what if you want it a little more dynamic than that, yet don’t have the time to update content there regularly which makes sense because you want to focus on your money making sites.
The answer, to pull content from the different sites that you own into the hub. There are a few ways to accomplish this and it all depends on what you want to achieve. Today we will explore one method.
In this method, posts are actually created on the hub site and you get the choice of displaying the full article in the hub or re-direct people to the source site to read the full post.
What you’ll need:
- WordPress installed on the hub site
- RSS feed(s) from the source site(s)
- FeedWordPress or similar plugin
How:
I think this method is the simplest because Feed WordPress does it all for you. You can select the category the items should be posted into and each feed can be fed into its own category. Set it to automatically update.
From there on, all you need to do is display the latest posts from each category (each site) on the landing page. Set FeedWordPress to link to the original post and visitors will be directed to your other sites – where you want them to really go.
To pull the latest posts from a category in a spot other than the sidebar, use the following code.
have_posts()) : $recent->the_post();?>
Change the category ID number (cat=1) to match the category ID number you want to display and if you want to show more than 3 posts, change the showpost number. Simple as that.
Do You Want A Hands-Free Business?
Then get this guide to help you systemize your business so you'll have more time working on your business.
Hey! I want to make sure you know what you're getting here. In addition to the guide, you will also receive our memo that includes special offers, announcements and of course actionable information.
Awesome advice Lynette! Off to do this now 🙂
Awesome advice Lynette! Off to do this now 🙂
Thanks, I had my site (http://www.blogcottage.com) up and running in no time. So whats next 🙂
Thanks, I had my site (http://www.blogcottage.com) up and running in no time. So whats next 🙂