Viewing 1 replies (of 1 total)
  • Thread Starter bjtalbot

    (@bjtalbot)

    I tried making a copy of WP_Widget_Recent_Posts in my theme directory’s functions.php, naming it My_Widget_Recent_Posts, and adding ‘q2w3-post-order’ => ‘disable’ to the query that that widget uses:

    $r = new WP_Query( apply_filters( 'widget_posts_args', array( 'posts_per_page' => $number, 'no_found_rows' => true, 'post_status' => 'publish', 'ignore_sticky_posts' => true,'q2w3-post-order' => 'disable' ) ) );

    Then I replaced the standard widget in the sidebar with My_Widget_Recent_Posts, but it didn’t work—the widget still displays the posts according to Q2W3’s ordering, not by date.

    Any suggestions? Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Suppress re-ordering in sidebar widget?’ is closed to new replies.