Presenting the last 5 blog entries on another page
-
Hi,
I am running a blog out of https://blog.7inspirations.com/ and would like to bring excerpts of the last 5 posts on our home page (https://www.7inspirations.com/)
I can think of two ways of doing this by either (1) using fetch_rss() or (2) by accessing the database directly like /wp-admin/index.php does. I do not like option #1 because the blog is hosted on the same server so there should be no need to trigger a local http connection. I do not like option #2 because it will break when the database schema will change.
So is there a clean way to do this using the wp API?
Thank you,
-phil
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Presenting the last 5 blog entries on another page’ is closed to new replies.