WordPress.org

Ready to get started?Download WordPress

Forums

Post Types Order
[resolved] Affecting popular post widget (4 posts)

  1. gavin27
    Member
    Posted 1 year ago #

    Hi I have tried reading through this support board but I dont think its addressed.

    I installed this widget and it works great apart from 1 small problem it is affecting my popular post widget.

    this widget listed my posts with the most comments but once this was installed it start listing posts with no comments. Does anyone have any idea how I would correct this?

    I have removed the widget until I can get a solution.

    filmscope.net

    thanks

    http://wordpress.org/extend/plugins/post-types-order/

  2. tdgu
    Member
    Posted 1 year ago #

    You can try to turn off the autosort and use the 'orderby' => 'menu_order' within queries where need the custom order, as shown in the plugin options page.

  3. gavin27
    Member
    Posted 1 year ago #

    Thanks for the replay, but I am not sure what you mean do I have to edit it in the Plugin - options.php

    <pre class="example">
    $args = array(
    'post_type' => 'feature',
    'orderby' => 'menu_order',
    'order' => 'DESC'
    );

    or do I need to do something else??
    thanks and sry for being so stupid...

  4. tdgu
    Member
    Posted 1 year ago #

    Sorry i didn't mean that, you should use the example within the plugin Options page and use a similar code within your theme.
    Only the Advanced Post Types Order contain an additional query parameter 'force_no_custom_order' which allow to exclude the custom order for a certain query when the Autosort is On, see this page for more details.
    Hope it make sense.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags