Support » Fixing WordPress » single-post_type.php page not loading on Live Site

  • Resolved azadcreative


    Hi there,

    I have a custom post_type called “Portfolio”

    Here’s my code in functions.php

    function post_type_portfolio() {
        array('label' => __('Portfolio'),
                 'public' => true,
                 'show_ui' => true,
                 'capability_type' => 'post',
                 'hierarchical' =>  true,
                 'rewrite' => true,
                 'query_var' =>  true,
                 'supports' => array(
        register_taxonomy( 'Skills', 'portfolio',
                 'hierarchical' => false,
    			 'label' => __('Skills'),
    			 'query_var' => 'skills',
    			 'rewrite' => array('slug' => 'skills' )
    	register_taxonomy( 'Media', 'portfolio',
                 'hierarchical' => false,
    			 'label' => __('Media'),
    			 'query_var' => 'media',
    			 'rewrite' => array('slug' => 'media' )
    add_action('init', 'post_type_portfolio');

    I have added a couple of Portfolio items.

    Here is the live demo:

    There are 2 template files: portfolio.php and single-portfolio.php

    This works on my test server (localhost) but in the live site, the item pages are broken..

    Any ideas? Thanks in advance.

    Mind you, everything works in localhost.

    Screenshot of localhost (notice the address bar):

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘single-post_type.php page not loading on Live Site’ is closed to new replies.