Forums

Exclude Cat no longer functions from upgrade to php5 (3 posts)

  1. alextravel
    Member
    Posted 3 years ago #

    My webhost recently upgraded my dB and scripting to php5.2.2 and mysql 5.0.45, the original version of wordpress was running on versions 4.

    Now post upgrade the following query shows posts in reverse order (oldest post first) and it does not exclude the cat.

    Appears the cat=-16 fails to work.

    query_posts('showposts=4&cat=-16');

    If I remove the cat=-16 then it works fine.

    The 'minus' appears to be the problem - but so far havent found a way to fix it, not sure whether it is a php5 mysql5 or wordpress issue?

    Does anyone have any ideas?

    Thanks

  2. scribu
    Member
    Posted 3 years ago #

    I think it's an issue with PHP 5, as some other problems with reverse post order are caused by PHP 5.

  3. alextravel
    Member
    Posted 3 years ago #

    Sorry just to clarify, it shows up in the correct order if I remove the cat=-16

    Thanks for the quick response.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags