WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom Taxonomy Not Registering...Yoast Plugin Issue? (2 posts)

  1. Joel
    Member
    Posted 4 years ago #

    Trying to add some custom taxonomies using the register_taxonomy function, but it's not working for some reason.

    1. Initially I wrote the function myself and added a couple of custom taxonomies.
    2. Then I used the Yoast Simple Taxonomies plugin to create some additional 'test' taxonomies, but decided not to use it.
    3. Now, I have deactiviated and removed the Yoast Simple Taxonomies plugin and the new custom taxonomies I want to create are not registering!

    Here is the code...although, I'm pretty sure that the Yoast plugin injected something into mySQL which WP doesn't like.

    register_taxonomy( 'legalstage', 'post', array( 'hierarchical' => false, 'label' => __('Legal Stage', 'series'), 'query_var' => 'legalstage', 'rewrite' => array( 'slug' => 'legal-stage' ) ) );

    And yes, I tried clearing my cache and re-saving the permalink settings, but the problem persists.

  2. Joel
    Member
    Posted 4 years ago #

    Went through a number of steps, so not 100% on which cured the problem.

    Primarily, I believe it was an issue with my FTP client. For some reason filezilla seems to not have properly uploaded my functions.php file. I noticed this only after viewing the file through the WP theme editor screen...very strange, as filezilla reported a successful upload.

    Other steps included disabling plugins, deleting taxonomy entries directly from the three relevant mySQL tables and removing all existing custom tag taxonomies in the admin panel & the functions.php file before recreating them via pasting the proper functions.php file straight into the WP theme editor and saving it from there.

    Oh well, hope that helps anyone else who might come across the same issue.

Topic Closed

This topic has been closed to new replies.

About this Topic