• loicdlb

    (@loicdlb)


    Hello,
    Thanks for this plugin, very useful!
    I create a custom post type called “question” with this code in my function.php :

    // function that creates the questions custom blog post with the SuperCPT plugin
    function add_questions_post_type_question() {
    
    	// we check if SuperCPT is installed
    	if ( ! class_exists( 'Super_Custom_Post_Type' ) )
            return;
    
        // creation of a new SuperCPT object for the questions
    	$question = new Super_Custom_Post_Type( 'question' );
    
    	// we set the icon for the custom question blog post
    	$question->set_icon( 'question' );
    
    	// Taxonomy test, should be like tags
        $tax_tags = new Super_Custom_Taxonomy( 'Question Tag' );
    
        // Taxonomy test, should be like categories
        //$tax_cats = new Super_Custom_Taxonomy( 'tax-cat', 'Tax Cat', 'Tax Cats', 'category' );
        $tax_cats = new Super_Custom_Taxonomy( 'tax-cat', 'Category', 'Categories', 'category' );
    
        // Connect both of the above taxonomies with the post type
        connect_types_and_taxes( $question, array( $tax_tags, $tax_cats ) );
    
        // Add a meta box with every field type
        $question->add_meta_box( array(
            'id'      => 'Question informations',
            'context' => 'normal',
            'fields'  => array(
                'Author'         => array( 'type' => 'select',   'options' => array( 1 => 'Name 1', 2 => 'Name 2', 3 => 'Name 3', 4 => 'Name 4', 5 => 'Name 5' ) ),
                'Other Author (if author is not listed above)'        => array(),
                'Date'           => array()
            )
        ) );
    }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    When I am editing my question, I want to add tags. It works fine, but the feature choose from most used tag is not working : I can see the link in the backoffice but when I click, nothing happens. When I go in the tag list, all my tags are here.

    Does anybody had the same issue ?

    https://www.ads-software.com/plugins/super-cpt/

  • The topic ‘Choose from most used tag not working’ is closed to new replies.