Pull Last 5 Entries as a PHP Include
I need to pull the last 5 entries from my blog as an include. In other words, the blog is just one component of a larger site, and I want to include excerpts of the last 5 entries on the main page of the site. My problem is: How do I create a file that I can then include in this fashion? I.e., where it contains the necessary dynamic variables, but isn’t going to get pre-processed by the WordPress software. Thanks in advance for any help…!
- The topic ‘Pull Last 5 Entries as a PHP Include’ is closed to new replies.