WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
[resolved] Tags metabox not showing with manual code (4 posts)

  1. Rogier
    Member
    Posted 1 year ago #

    I am using two localhost installs of WP 3.5.1. One of these has Custom Post Type UI v0.7.2 installed. The second install doesn't have the plugin installed; instead I 'Get Code' from installation 1 and paste the generated code in the functions.php file of installation 2.

    The post type is configured to support tags in its taxonomies. But the tags metabox only shows up in the install that has the plugin. In the second install (where I add the code manually) everything else seems the same, except that the 'tags' metabox doesn't show.

    How can I get the metabox to show?

    http://wordpress.org/extend/plugins/custom-post-type-ui/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Rogier, I'll have to test this out myself and see if I can reproduce.

    Have you made any progress on this since? Just making sure I have all the right data still.

  3. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    Hello again Rogier.

    I realize I may not be reaching you, but if you check in again, and for anyone else with the same issue. I finally determined that the manual code needs to be wrapped in a callback function attached to the init hook. I will be making a note of this or outputting it with the "get code" in version .8.

    For those who need a visual, do the following:

    add_action( 'init', 'mycallbackfunction');
    function mycallbackfunction() {
        /*paste the "get code" output here. everything within the register post type function*/
    }

    Feel free to rename the mycallbackfunction bit to whatever you want, but do try to avoid function name clashes :)

  4. Rogier
    Member
    Posted 1 year ago #

    Hi Michael, thanks so much for your reply. I will give this a try.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic