ReOrder Post Within Categories
Plug in not recognizing my custom post types (4 posts)

  1. dm10014
    Posted 3 years ago #

    Hello, this plug isn't recognizing my custom post type which I created with a custom plug in I made. Can you help?


  2. droig
    Posted 3 years ago #

    Hi, I have a custom post and category. This is my post query code:

    query_posts( array(
    'post_type' => 'CUSTOM_POST',
    'term' => 'cat_slug',
    'nopaging' => TRUE
    ) );
    Then y just use de normal LOOP
    if ( have_posts() ) { while ( have_posts() ) { ..............


  3. AndyMacKay
    Posted 2 years ago #

    Hi dm10014,

    This was a long time ago, but as I was having this problem and managed to resolve it by looking in the reorder-posts-within-categories.php plugin file, I will show my debug procedure which may be useful.

    I searched in the language file for 'Sort items such as "Offering"' which was the html output in my admin for the settings page of the plugin that displays the available categories, this gave me the French used in the php code 'Types d'articles disponibles'.

    Now I knew that I was in the correct part of the file I could read line 685
    $post_types = get_post_types( array( 'show_in_nav_menus' => true,'public'=>true, 'show_ui'=>true, 'hierarchical' => false ), 'object' );

    and from here I could see the settings I needed to use in the register_post_type aguements array. I could also read a few lines down at 699
    if($taxonomie->hierarchical == 1
    So I knew that I should also set my taxonomy post type to be true within the register_taxonomy $args array.

    And big thumbs up to the plugin developer, I searched high and low on the internet for this functionality. You made my day!

  4. sitywyde
    Posted 2 years ago #

    this doesnt work...it doesnt recognize any categories..
    doesnt load anything..so cant select anything...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • ReOrder Post Within Categories
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.