Avada Forums Community Forum PROBLEM: Custom Post Type – Archive Page

Viewing 1 post (of 1 total)
  • Author
    Posts
  • batmiska
    Participant
    Post count: 3

    Hi there!

    Can anyone help?

    I’ve added basic custom post type (called ‘tuotteet’) to my child theme’s function.php file. CPT itself works fine but the archive page has a problem where the post content starts from the top of the page and not under the header.

    CPT function:
    function create_posttype() {
    register_post_type( ‘tuotteet’,
    array(
    ‘labels’ => array(
    ‘name’ => __( ‘Tuotteet’ ),
    ‘singular_name’ => __( ‘Tuote’ )
    ),
    ‘public’ => true,
    ‘has_archive’ => true,
    ‘rewrite’ => array(‘slug’ => ‘tuotteet’),
    )
    );
    }
    add_action( ‘init’, ‘create_posttype’ );

    Problem archive page:
    http://finluxpro.com/tuotteet/

    Test CPT itself works just fine:
    http://finluxpro.com/tuotteet/testing/

    Basic blog archive page works just fine:
    http://finluxpro.com/testi-blogi/

    Thank you!

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.