• Resolved sollers

    (@sollers)


    Found nothing regarding templates in documentation or google…

    Did I miss sth?

    Working with github demo file, post keeps showing index.html of the theme ( brand new install)

    File used as plugin: https://github.com/wp-plugins/advanced-post-manager/blob/master/demo/demo.php

    Also tried template structure of Events Calendar Plugin {template}/tribe_movie/default-template.php

    Temporary solution: adding default wp custom post init at the end of demo plugin, then I was able to use single-tribe_movie.php

    add_action( 'init', 'create_post_type' );
    function create_post_type() {
      register_post_type( 'movie',
        array(
          'labels' => array(
            'name' => __( 'Products' ),
            'singular_name' => __( 'Product' )
          ),
          'public' => true,
          'has_archive' => true,
        )
      );
    }

    https://wordpress.org/plugins/advanced-post-manager/

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

    (@sollers)

    Seems param public is missing, that should be added to demo, otherwise you cannot view/preview any of the posts. Also template should be mentioned in the documentation.

    register_post_type( $this->post_type, array(
    			'show_ui' => true,
    			'labels' => $labels,
    			'supports' => array( 'title' ),
    			'public' => true,
    		) );
Viewing 1 replies (of 1 total)
  • The topic ‘Templates’ is closed to new replies.