Title: taxonomy template
Last modified: August 30, 2016

---

# taxonomy template

 *  Resolved [draig](https://wordpress.org/support/users/draig/)
 * (@draig)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/taxonomy-template-1/)
 * I made a custom post type and a custom taxonomy (topics). Now I’m making an archive
   template (taxonomy-topics.php for the topic archive pages).
 * I’m not a php coder, but I did manage to get my template to show the whole site
   minus the loop… but now I am stuck trying to figure out the syntax to use CCS
   for the loop part.
 * Is there any repository of CCS examples in php templates? There may be some examples
   in threads here in the forum, but I did not find them through a search… neither
   via some manual browsing through threads. Any help appreciated!
 * [https://wordpress.org/plugins/custom-content-shortcode/](https://wordpress.org/plugins/custom-content-shortcode/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [draig](https://wordpress.org/support/users/draig/)
 * (@draig)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/taxonomy-template-1/#post-6466691)
 * I’m using Genesis theme (Dynamic Website Builder as child theme) so I removed
   the default loop with
 * remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
 * then added a custom loop
 * add_action( ‘genesis_loop’, ‘my_custom_loop’ );
    function my_custom_loop() {
 * what do I put in here to use CCS?
 * }
 *  [Peter Berger](https://wordpress.org/support/users/peterpolow/)
 * (@peterpolow)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/taxonomy-template-1/#post-6466926)
 * Hi draig,
 * I use it like this, maybe it will help you.
 * In taxonomy-my_tax_name.php I have this part:
 *     ```
       <?php if (have_posts()) : while (have_posts()) : the_post();
   
       			get_template_part( 'content', 'my_tax_name' );
   
       			endwhile;
   
       		endif; ?>
       ```
   
 * In content-my_tax_name.php I have this code:
 *     ```
       <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
   
       		<?php echo do_shortcode('[content type="template" name="my_post_name" field="html"]'); ?>
   
       	</article>
       ```
   
 * I have a post type “template” where I added a field “html”. In the post named“
   my_post_name” I have a code like this:
 *     ```
       <div class="my_tax_name-item" >
       [field title]
       [field image]
       ...
       </div>
       ```
   
 * Does it helps you?
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/taxonomy-template-1/#post-6466964)
 * Hi draig,
 * > Is there any repository of CCS examples in php templates?
 * Currently, the documentation doesn’t have any info about use in PHP templates.
   I’ll try to improve that.
 * There are a couple of helper functions you can use inside your custom loop:
 *     ```
       start_short();
       ?>
   
        ..your shortcodes here..
   
       <?php
       end_short();
       ```
   
 * For displaying posts in the default query loop:
 *     ```
       [the-loop]
         [field title], etc.
       [/the-loop]
       ```
   
 * I’m not familiar with the Genesis theme or its page builder, so you can see if
   the above examples actually work.
 * —
 * Hi Peter, thank you for helping out in the support forum. I saw another thread
   where you gave some helpful info. I appreciate it!
 *  Thread Starter [draig](https://wordpress.org/support/users/draig/)
 * (@draig)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/taxonomy-template-1/#post-6466973)
 * Hi Eliot,
 * I had found the start_short and end_short functions where you had mentioned them
   in another thread… but it was [the-loop] that I was missing. That does the trick.
 * Thanks for your help
 * ps – thanks too Peter for trying.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘taxonomy template’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [draig](https://wordpress.org/support/users/draig/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/taxonomy-template-1/#post-6466973)
 * Status: resolved