• Resolved sloped

    (@sloped)


    I’ve run into an issue where WordPress stops using single-posttype.php when I access a post using a custom permalink (domain.com/posttype/slug) I can still see the correct template when I access using domain.com/?posttype=slug.

    I’ve tried changing my permalink structure which hasn’t worked and I can’t figure out what setting in register_post_types could cause this issue. Any ideas?

    Thanks

    register post type function call –

    register_post_type( 'posttype',
    array(
    'labels' => array(
    'name' => __( 'Post Types' ),
    'singular_name' => __( 'Post type' )
    ),
    'rewrite' => array('slug' => 'posttype'),
    'public' => true,
    'has_archive' => false,
    'description' => 'Menus displayed to customers.',
    'supports' => array('title','editor'),
    'show_in_nav_menus' => true,
    )
    );

Viewing 1 replies (of 1 total)
  • Thread Starter sloped

    (@sloped)

    Dumb mistake, was using a custom query outside the loop and forgot to call reset_query()

Viewing 1 replies (of 1 total)
  • The topic ‘Permalinks changing template order’ is closed to new replies.