• This is a great plugin—thanks for making it available!

    I’m using the Q2W3 Post Order to re-order posts on my homepage. On the same page, in a sidebar, I’m using the Recent Posts widget. But I don’t want the posts re-ordered in the widget—I want them to be in the normal order by date.

    Is this possible?

    https://www.ads-software.com/plugins/q2w3-post-order/

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.