single-post_type.php page not loading on Live Site
-
Hi there,
I have a custom post_type called “Portfolio”
Here’s my code in functions.php
function post_type_portfolio() { register_post_type( 'portfolio', array('label' => __('Portfolio'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => true, 'rewrite' => true, 'query_var' => true, 'supports' => array( 'title', 'editor', 'post-thumbnails', 'excerpts', 'custom-fields', 'revisions') ) ); register_taxonomy( 'Skills', 'portfolio', array( 'hierarchical' => false, 'label' => __('Skills'), 'query_var' => 'skills', 'rewrite' => array('slug' => 'skills' ) ) ); register_taxonomy( 'Media', 'portfolio', array( '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: https://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):
https://azadcreative.com/files/localhost-screenshot.png
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.