• I just enabled and made a custom post type, this is my functions.php

    <?php
    
    //
    //  Custom Child Theme Functions
    //
    
    // I've included a "commented out" sample function below that'll add a home link to your menu
    // More ideas can be found on "A Guide To Customizing The Thematic Theme Framework"
    // https://themeshaper.com/thematic-for-wordpress/guide-customizing-thematic-theme-framework/
    
    // Adds a home link to your menu
    // https://codex.www.ads-software.com/Template_Tags/wp_page_menu
    //function childtheme_menu_args($args) {
    //    $args = array(
    //        'show_home' => 'Home',
    //        'sort_column' => 'menu_order',
    //        'menu_class' => 'menu',
    //        'echo' => true
    //    );
    //	return $args;
    //}
    //add_filter('wp_page_menu_args','childtheme_menu_args');
    
    // Unleash the power of Thematic's dynamic classes
    //
    // define('THEMATIC_COMPATIBLE_BODY_CLASS', true);
    // define('THEMATIC_COMPATIBLE_POST_CLASS', true);
    
    // Unleash the power of Thematic's comment form
    //
    // define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);
    
    // Unleash the power of Thematic's feed link functions
    //
    // define('THEMATIC_COMPATIBLE_FEEDLINKS', true);
    
        // custom post types
        function create_post_type() {
        register_post_type(
        'Updates',
        array(
        'labels' => array(
        'name' => __( 'Updates' ),
        'singular_name' => __( 'Update' )
        ),
        'public' => true,
        'menu_position' => 5,
        'rewrite' => array('slug' => 'model'),
        'support' => array('title','author','editor','thumbnail','comments')
        )
        );
        }
    
        add_action( 'init', 'create_post_type' );
    
        // taxonomies
        function listing_taxonomy() {
        register_taxonomy(
        'Models',
        'updates',
        array(
        'hierarchical' => true,
        'label' => 'Add Model',
        'query_var' => true,
        'rewrite' => array('slug' => 'Modez')
        )
        );
    
        }
        //
        add_action( 'init', 'listing_taxonomy' );
    ?>

    and now when i click, Add Model, it get this little message saying
    Cheatin’ uh?

    I just dont see what i have in the functions to have caused this.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cheatin’ uh? Error after custom post type/ taxonomy’ is closed to new replies.