Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have got the following simple code.

<ul id="filter"><?php       
echo '<li class="active"><a href="#" class="all">All</a></li>';             
if ( $count > 0 ) {             
    foreach ( $mylinks as $mylink ) {
        echo '<li>'.'<a href="#" class="'. $mylink->slug .'" >';
        echo $mylink->name;
        echo "</a>";
        echo "</li>";
        }
    }   
?>

The above basically returns the following:

<ul class="filter">
<li class="active">
    <a class="all" href="#">All</a>
</li>
<li>
    <a class="education" href="#">Education</a>
</li>
<!-- Etc. --></ul>

What I want is to have the taxonomy terms, (i.e. say taxonomy Education to link to an independent page: http://website.com/education and on that page have all the custom post types with the taxonomy 'education' displayed on the page.

PS: Displaying the taxonomy terms is not a problem, the problem is linking the displayed taxonomy terms (in the code above) to an independent page (http://website.com/independent_page). This must happen all dynamically.

Is it possible? Please share your suggestions or links to tutorials.

One more question. What is the exact custom taxonomy URL? Is it http://website.com/taxonomy/education ?

share|improve this question

1 Answer 1

If I understood this correct, then you need a taxonomy.php file.

LINK

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.