Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nsp-code

    (@nsp-code)

    Try including the ‘suppress_filters’ => FALSE within the parameters.

    Thread Starter logicred

    (@logicred)

    Thanks! Interesting, but possible bug in WP…

    THIS WORKS

    $args = array( ‘posts_per_page’ => 10, ‘suppress_filters’ => false, ‘category’ => 6 );

    THIS DOES NOT (it works, but the suppress_filters has no effect).

    $lastposts = get_posts(‘numberposts=10&category=5&suppress_filters=false’);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working using get_posts function’ is closed to new replies.