Last created "Post Type" wont display under "Taxonomies"

I found a bug when creating a custom post and assigning a custom taxonomy.

I created 2 post types called "Test 1" & "Test 2", I also created 2 taxonomies "Test Tax 1" & "Test Tax 2". When I go to assign a taxonomy to a post type only "Test 1" appears.

As a workaround I created post type "Test 3", when I did this "Test 1" & "Test 2" appear in the list but not "Test 3".

I hope I've given you enough information.

  • Kasia Swiderska
    • Support nomad

    Hello Tim,

    Than is very strange - I tried to replicate this on your site and on mine but I could not - I created test custom post type and it showed right away in taxonomy list (on your site - I'm allowing myself to leave it so you can see that it is showing in taxonomy). On my site I created two post types and then one taxonomy - they showed there instantly.

    Can you try deleting this third custom post type and creating it again so see if that error will appear again?

    But this time please enable debug log so we will be able to see what is happening there. To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

    define('WP_DEBUG', true);

    In order to enable the error logging to a file on the server you need to add yet one more similar line:

    define( 'WP_DEBUG_LOG', true );

    In this case the errors will be saved to a debug.log log file inside the /wp-content/directory.

    Depending on whether you want your errors to be only logged or also displayed on the screen you should also have this line there, immediately after the line mentioned above:

    define( 'WP_DEBUG_DISPLAY', false );

    The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it. I would need then to see content of the debug.log file - so please upload it to dropbox like a service and paste link here.

    kind regards,

  • Tim Rawson
    • Flash Drive

    Hey Kasia Swiderska I did see you created a test Custom Post Type, and it is appearing in my list. However 1 of the 3 others I created is not. Curious indeed.

    I went ahead and added the lines of code mentioned above to my WP Config file.

    However when I deleted and recreated the Custom Post Types, they all appeared.

    So strange.

  • Denitsa
    • WordPress Warrior

    Hello Tim Rawson,
    I hope you're having a beautiful day!

    So, is everything working as it should be for you now? Did the issue disappear altogether?

    If you happen to experience the same thing again, please make sure you provide us with your debug.log file as Kasia has described above.

    If we can help you in this or other questions, please let us know!


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.