how to create custom post type taxonomy archive template in wordpress

How to create custom post type taxonomy archive template in wordpress? We covered it in our initial article about Custom Post Types, but it wasn’t explained thoroughly. In this article, we will show you a step by step guide on how to create a custom post types archive page or template in WordPress.

First you need to make sure is that your custom post type has archive enabled in the code. To do this, you need to go to your custom post type code (see this article). You need to make sure that you have has_archive argument set to be true. It’s look like url https://ithelpsbd.com/category/wordpress/

So now follow our instruction. go to this page How To Create Custom Post Type In WordPress?. Now Take a new php file & give name taxonomy-notices-categories. this name came from your custom post type category register name (taxonomy-registercategoryname.php) & copy and paste below code to your new php template.

Custom taxonomy template code

<?php
/**
@package BR Theme- Category
**/
get_header(); ?>

<section id=”wrapper” class=”rony wrapper section category-page <?php single_term_slug(); ?>-category full-width”>
<div class=”main”>
<section id=”content” class=”content grid12″>

<div class=”content-indent”>
<h2><?php echo single_term_title(); ?></h2>
<div class=”notices-archive table-responsive”>
<table class=”notice table”>
<tr>
<th style=”width:25%”><strong>Title</strong></th>
<th style=”width:40%”><strong>Details</strong></th>
<th style=”width:10%”><strong>Posted Date</strong></th>
<th style=”width:10%”><strong>Download</strong></th>
</tr>
<?php // Check if there are any posts to display
if ( have_posts() ) : ?>
<?php
// Display optional category description
//if ( category_description() ) : ?>
<div class=”archive-meta”><?php //echo category_description(); ?></div>
<?php //endif; ?>
<?php //$counter = 1;?>
<?php

// The Loop
while ( have_posts() ) : the_post(); ?>

<?php
$adimage= get_post_meta($post->ID, ‘ad_image’, true); ?>
<tr>
<td><a href=”<?php echo get_the_permalink(); ?>”><?php the_title();?></a></td>
<td><?php the_content();?></td>
<td><?php echo the_time(‘ F j, Y’); ?></td>

<td><a href=”<?php echo $adimage; ?>” target=”_blank”><img style=”border:none;” src=”<?php echo get_bloginfo(‘template_url’).’/images/pdf-icon-red.png’;?>” /></a></td>
</tr>
<?php endwhile; ?>
<?php else : echo ‘<p>No blog post found.</p>’; endif; wp_reset_query(); ?>
</table>
</div>

<?php //if(function_exists(‘wp_pagenavi’) ) : wp_pagenavi(); else : paginate(); endif; ?>

</div>

</section>
</div>
</section>

<?php get_footer(); ?>

Now it save your theme directory. that’s it, stay connect with us for get more development problem solutions.

28 Responses to “how to create custom post type taxonomy archive template in wordpress”

  1. In the WordPress support forum, there are from time to time questions abut trackbacks. I haven’t used it myself, but I found a good tutorial on the OptiNiche cheap nfl jerseys china blog.

  2. Someone necessarily assist to make seriously posts I would state. postThis is the very first time I frequented your web page and so far? I surprised with the analysis you made to make this particular publish amazing. Excellent job!

  3. I have been exploring for a little for any high quality articles or blog posts on this sort of area postcheap nike nfl jerseys. Exploring in Yahoo I at last stumbled upon this site. Reading this information So i happy to convey that I’ve a very good uncanny feeling I discovered just what I needed. I most certainly will make certain to don’t forget this site and give it a glance regularly.

  4. relationships with other bloggers. Check out this extremely well-written trackback tutorial Permalink,we supply cheap nfl jerseys.

  5. Thanks a bunch for sharing this with all people you really understand what you’re speaking about! Bookmarked.postcheap jerseys, Please additionally consult with my website =). We may have a link alternate contract between us!

  6. Pretty nice post. I just stumbled upon your weblog and wanted to say that cheap nfl jerseys china I have truly enjoyed browsing your blog posts. In any case Il be subscribing to your feed and I hope you write again very soon!postcheap nfl jerseys china.

  7. Very nice post. I just stumbled upon your weblog and wanted to say that cheap nfl jerseys china I’ve really enjoyed surfing around your blog posts. After all I will be subscribing to your rss feed and I hope you write again soon!postcheap nfl jerseys.

  8. I believe this is one of the most vital information for me. And i am satisfied reading your article. However should commentary on few general issues, The website style is ideal,postwholesale nfl jerseys the articles is actually great D.Just right process, cheers

  9. Thank you a lot for sharing this with all of us you really know what you’re talking about! Bookmarked.postcheap nfl jerseys, Kindly also discuss with my site =). We can have a hyperlink alternate agreement between us!

  10. Pretty nice post. I just stumbled upon your blog and wished to say that cheap nfl jerseys china I’ve really enjoyed surfing around your blog posts. In any case I will be subscribing to your rss feed and I hope you write again very soon!postwholesale nfl jerseys.

  11. I have been exploring for a little for any high quality articles or blog posts on this kind of area postcheap nfl jerseys china. Exploring in Yahoo I at last stumbled upon this web site. Reading this info So i am happy to convey that I have an incredibly good uncanny feeling I discovered just what I needed. I most certainly will make sure to do not forget this web site and give it a look on a constant basis.

  12. Hi there, simply changed into aware of your blog thru Google, and found that it’s truly informative. I gonna be careful for brussels. I will appreciate when you proceed this in future. Numerous folks might be benefited from your writing. Cheers!

  13. I think this is one of the most significant info for me. And i am satisfied reading your article. However wanna observation on few normal things, The website style is great,postcheap nike nfl jerseys the articles is in reality great D.Just right activity, cheers

  14. Wow, wonderful blog layout! How long have you been blogging for? you made blogging look easy to cheap nfl jerseys china. The overall look of your website is excellent, postcheap nike nfl jerseysas well as the content!

  15. relationships with other bloggers. Check out this extremely well-written trackback tutorial Permalink,we supply cheap nfl jerseys.

  16. I have been exploring for a bit for any high-quality articles or blog posts on this kind of area post. Exploring in Yahoo I at last stumbled upon this web site. Reading this information So i am happy to convey that I’ve an incredibly good uncanny feeling I discovered just what I needed. I most certainly will make sure to do not forget this website and give it a look on a constant basis.

  17. I been exploring for a little for any high-quality articles or blog posts on this kind of area postcheap nfl jerseys china. Exploring in Yahoo I at last stumbled upon this web site. Reading this info So i happy to convey that I have an incredibly good uncanny feeling I discovered exactly what I needed. I most certainly will make sure to do not forget this website and give it a glance on a constant basis.

  18. Thanks a bunch for sharing this with all people you really know what you are talking approximately! Bookmarked.postcheap jerseys, Kindly also consult with my website =). We could have a link trade agreement between us!

  19. Since I didn’t really understand how this works,we supply cheap nfl jerseys I did some searching and found an outstanding WordPress Trackback Tutorial that explains much of what I was finding confusing.

  20. Hi there, just become alert to your blog thru Google, and found that it is truly informative. I am gonna watch out for brussels. Il appreciate in the event you continue this in future. Numerous other people can be benefited out of your writing. Cheers!

  21. relationships with other bloggers. Check out this extremely well-written trackback tutorial Permalink,we supply cheap nfl jerseys.

  22. I will right away postwholesale nfl jerseys grab your rss feed as I can’t to find your e-mail subscription hyperlink or e-newsletter service. Do you’ve any? Kindly permit me realize so that I could subscribe. Thanks.

  23. We’re a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on cheap nfl jerseys china. You’ve done a formidable job and our entire community will be thankful to you.

  24. Hi there, just changed into aware of your weblog through Google, and located that it is truly informative. I am gonna be careful for brussels. I will appreciate if you proceed this in future. A lot of other people will probably be benefited from your writing. Cheers!

  25. As a side note, the more we can use trackbacks, pingbacks, and backlinks to spread the love and our message, the better.we supply cheap nfl jerseys I encourage you to figure out how to use these tools as they can really make our words online much more effective and heard.

  26. Discover what’s the deal with ingbacks? According to Wikipedia, WP supports automatic pingbacks where all the links in a published article can be pinged when the article is published?we supply cheap nfl jerseys That explains why I get messages about new comments? when posting an edit that cross-references another post of my own. Info on trackbacks and pingbacks in WP here.

  27. We are a group of volunteers and starting a new scheme in our community. Your site provided us with valuable info to work on cheap nfl jerseys china. You’ve done a formidable job and our entire community will be thankful to you.

  28. In the WordPress support forum, there are from time to time questions abut trackbacks. I haven’t used it myself, but I found a good tutorial on the OptiNiche cheap nfl jerseys china blog.

​Leave a Comment

Comment authors age:




Facebook Marketing Tips To Promote A Local Business

How to Remove the Cell Spacing in CSS. code for css gap removed