The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] single-post_type.php page not loading on Live Site (2 posts)

  1. azadcreative
    Posted 5 years ago #

    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: http://azadcreative.com/portfolio/

    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):

  2. flashpunk
    Posted 5 years ago #

    Hi there,

    I think i'm experiencing the same issue, could you describe what you did to make the fix?

Topic Closed

This topic has been closed to new replies.

About this Topic