After upgrading to WordPress 2.1 my "Customizable Post Listings" plug-in is showing Pages as recent posts.
I've never really noticed it when I had WP 2.0.6 installed, is this how it's supposed to work?
After upgrading to WordPress 2.1 my "Customizable Post Listings" plug-in is showing Pages as recent posts.
I've never really noticed it when I had WP 2.0.6 installed, is this how it's supposed to work?
In 2.1 there has been an addition of the 'post_type' record. It defines what kind of document an entry is considered, such as 'post' or 'page'.
Most posts-related plugins will typically need to be updated to deal with this change.
Some more details here:
http://www.transycan.net/blogtest/2007/01/23/how-pages-are-different-in-wp-21/
Thank you for your replies!
I think I can modify the script myself now reading transycan.net's post :)
For those that need to fix their plugin:
Go to line 61 and replace
$sql .= "WHERE $tableposts.post_date <= '$now' AND ( $tableposts.post_status = 'publish' ";
with
$sql .= "WHERE $tableposts.post_date <= '$now' AND ( $tableposts.post_status = 'publish' AND $tableposts.post_type = 'post' ";
I had this problem, too, and the solution here works great -- thanks!
This topic has been closed to new replies.