Custom Content Type Manager
Registering custom post types if plugin is not working (3 posts)

  1. cgclouds
    Posted 5 years ago #

    Hi! First of all thanks for the great plugin!
    I noticed that when one deactivates it, the custom post types are no longer working on the site.

    I noticed they are still however stored on the wp_options table.

    What code should I put in a functions.php theme file to register the custom post types generated by the plugin if/when (God forbid) the plugin is not working?



  2. fireproofsocks
    Plugin Contributor

    Posted 5 years ago #

    Correct: deactivating the plugin leaves its options in the wp_options table. Deleting the plugin will cause it to clean up after itself.

    As for adding functions... you can't really do that... to do all that work you'd basically require the entire plugin. There is apparently a lot of confusion as to how WP handles custom post types since this is one of many similar questions I've gotten: you have to register each custom post type,otherwise WP doesn't know anything about it. And the registration takes on a lot of details to describe the behavior, so it's no something you can quickly bang out... you have to write a lot of code tied to various actions working together in order for it to work -- the process goes all the way to the WP core, so adding a little function to your theme's functions.php file is sorta like cutting off your arm then putting a bandaid on the bloody stump.

    When there are bugs with the plugin, file a bug report.

  3. cgclouds
    Posted 5 years ago #

    Thanks for the reply. I've been delving into the docs to understand all this. I now see and appreciate how much this plugin adds to the WordPress functionality, and, on the other hand, how far WordPress still is from being a complete content management tool for end users.

    I'm sure though WordPress will keep on developing fast and incorporating more needed tools soon.

    Thanks again for the great work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic