Forums

[resolved] Customizable Post Listings Showing Pages (6 posts)

  1. ohshhitscarl
    Member
    Posted 1 year ago #

    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?

    http://www.carlthree.net

  2. Kafkaesqui
    Moderator
    Posted 1 year ago #

    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.

  3. moshu
    Member
    Posted 1 year ago #

  4. ohshhitscarl
    Member
    Posted 1 year ago #

    Thank you for your replies!
    I think I can modify the script myself now reading transycan.net's post :)

  5. blepoxp
    Member
    Posted 1 year ago #

    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' ";

  6. msmeritt
    Member
    Posted 1 year ago #

    I had this problem, too, and the solution here works great -- thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic