WP Post Puller is a plugin by Luke Meshios and Krakjoe. This plugin displays posts from the last X amount of days.
Demo: look at “Entries for the last 5 days” in the sidebar.
Installation:
- Download the Plugin File
- Unzip WP-post-puller.zip and extract the file WP-post-puller.php
- Upload WP-post-puller.php via FTP to you WordPress plugin folder (wp-content/plugins)
- Activate the Post Puller plugin in your WordPress Plugins admin panel
- Execute it in either index.php or sidebar.php by adding the following code where you want it to appear:
<?php pull_posts(); ?>
[You can also add it to the sidebar via the Executable PHP (or similar) widget, if you use a widget-ready theme and have installed Sidebar Widgets]
- You can change the default of 5 days by changing line 11 of the file (where it says “$days = 5”) accordingly
Have fun!
If you want to automatically be informed of updates to plugin, use the Notify Me feature below:
No matter where I put the above code, I get this message — Fatal error: Call to undefined function: cypher_todayposts() in /home/damiara/public_html/guitar-lesson/wp-content/themes/boxy-but-gold/sidebar.php on line 87. What am I doing wrong?
Have you activated the plugin in the WordPress Plugins admin panel?
I believe the line to include in your side bar (whatever template file) is . That made it work on borderlinebarbie.com.
Sorry, I guess I should have figured out that a php line would disappear in comments. 🙂 Instead of cyper_todayposts, try pull_posts.
@ Scott – you are absolutely correct … I’m a klutz and inserted the wrong code when updating the page 🙁
I’ve changed the instructions to reflect the correct code.
@ Darlene and the others who were stumped by my wrong instructions, my apologies!