I'm working on a website with a portfolio section, and I'm almost finished with this section, but I have a problem with the single page which is :
- whenever i click on any portfolio link, the single page opens but not showing any details except the previous and next link and this works correct.
- Also it uses the single.php and I can't change it.
Taking in consideration my main post link is (our-portfolio) and the custom post (slug = portfolio).
I tried this step:
- I have created a new single page with name (single-portfolio.php) and put it in the same place where my ( single.php) is but not working.
UPDATE
my Custom Post args:
$args = array(
'labels' => $labels,
'public' => true,
'menu_icon'=> 'dashicons-groups',
'show_ui' => true,
'capability_type' => 'post',
'hierarchical' => false,
'rewrite' => array('slug' => 'portfolio', 'with_front' => true),
'query_var' => true,
'show_in_nav_menus'=> false,
'exclude_from_search' => true,
'supports' => array('title', 'excerpt', 'page-attributes')
);
register_post_type( 'port', $args );
I hope I haven't missed anything.
register_post_type( '???', $args );
?