Support » Plugin: WP Sort Order » Reorder Custom Post Type

  • Resolved kiru4aa

    (@kiru4aa)


    Hello,
    if “Posts” is unchecked, reordering doesn’t working.
    Could you please help with this.

    If check “Posts” all is good…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    I will check but can you please more specific in this question? Did you mean to say that if Posts are checked so it works for other things too and if it’s unchecked so don’t work for categories as well? Anything like that? Any screenshot would be appreciated as well.

    Thread Starter kiru4aa

    (@kiru4aa)

    I have several custom type posts.
    I need to order (using plugin) in custom type categories and posts.
    But if unchecked “Posts” (default post type) ordering in custom taxonomy doesn’t work.
    Try.
    I found solution, added to functions:
    add_action( ‘pre_get_posts’, ‘customise_speakers_taxonomy_archive_display’ );
    function customise_speakers_taxonomy_archive_display ( $query ) {
    if (($query->is_main_query()) && (is_tax(‘adscategory’)))
    $query->set( ‘posts_per_page’, ’12’ );
    $query->set( ‘orderby’, ‘menu_order’ );
    $query->set( ‘order’, ‘ASC’ );
    }
    where “adscategory” is custom taxonomy

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Can you please send me the script or backup so i can try the same on my WordPress?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reorder Custom Post Type’ is closed to new replies.