• I have a custom post type setup with a couple of taxonomies. In the past I’ve made a taxonomy-my_custom_category.php. From this page I can pull in the posts within a specific taxonomy. This works great, but I’d like to manage that ‘landing’ page content from the Admin. I was thinking I could use a page like a regular custom template page, but because I have the custom post type setup with the taxonomy my custom page doesn’t show.

    For example I have /news/latest/
    That will display my taxonomy template named: taxonomy-cfc_newsitem_category.php

    Can I make a page that would be found? I’d like to make page-latest.php and use the same url /news/latest/

Viewing 2 replies - 1 through 2 (of 2 total)
  • For categories, you can try using the following functions to edit the content from the my-category page under the custom post type. Currently supports title and description but there are numerous ways to add to this functionality, including plugins.

    single_cat_title() and category_description()

    Very Simple Example:

    <?php
        echo '<h1 class="category-title">'.single_cat_title('Currently Browsing: ');.'</h1>';
        echo '<p class="category-description">' .category_description(). '</p>';
        echo '<div class="category-archive-wrapper">';
        while (have_posts()) : the_post();
            echo '<div class="news-box">';
            echo '<h2>'.the_title();.'</h2>';
            echo '<div class="news-box-excerpt">'.the_excerpt().'</div><!-- /.news-box-excerpt -->';
            echo '</div><!-- /.news-box -->';
        endwhile;
        echo '</div><!-- /.category-archive-wrapper -->'
    ?>

    Thread Starter kaplan

    (@kaplan)

    Thanks, I’m not sure that’s what I’m looking for, but I appreciate those links. I haven’t played with those functions before.

    I have a better idea of what I’m trying to do now though. I understand better I believe… I’m trying to add some design elements and imagery to the Custom Taxonomy Archive. I’d like my client to be able to edit the image or text at the top of that page through the admin. If I use the Custom Taxonomy Archive then I get to keep my nice url structure, then if you click into an item it mains that url pathing.

    http://codex.wordpress.org/images/1/18/Template_Hierarchy.png

    I’ve been thinking about ways to hack around it, but I have a feeling it makes more sense for me to ‘design’ the page, make those elements static and just be available for any changes my client would like to make to the design (text and image).

    Any suggestions for tweaking out a nice dynamic Custom Taxonomy Archive page that can be edited in the WP Admin??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘custom page used as custom post type landing (taxonomy)’ is closed to new replies.