Hello,
I made a custom posttype and also some custom taxonomies with it.
I can list my customposttypes and I created my list of custom taxonomies with the following code:
<?php
$orderby = 'name';
$show_count = 0; // 1 for yes, 0 for no
$pad_counts = 0; // 1 for yes, 0 for no
$hierarchical = 1; // 1 for yes, 0 for no
$taxonomy = 'nameofposttype';
$title = '';
$args = array(
'orderby' => $orderby,
'show_count' => $show_count,
'pad_counts' => $pad_counts,
'hierarchical' => $hierarchical,
'taxonomy' => $taxonomy,
'title_li' => $title
);
?>
<ul>
<?php
wp_list_categories($args);
?>
</ul>
I get my list of custom post tyes, but when I hit one of the URLs I get the 404 error page. What is going wrong?
this is the link (which is giving the error) /?nameofposttype=type-ijshockey