Title: add it in single.php
Last modified: November 7, 2017

---

# add it in single.php

 *  Resolved [yopyop22](https://wordpress.org/support/users/yopyop22/)
 * (@yopyop22)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/add-it-in-single-php/)
 * Work great with short code. But i want to add it diretly in php code to add code
   for all post
 * i dont want to add it one by one.

Viewing 1 replies (of 1 total)

 *  Plugin Author [willemso](https://wordpress.org/support/users/willemso/)
 * (@willemso)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/add-it-in-single-php/#post-9673904)
 * Dear Yopyop22,
 * Nice to hear you are using my plugin.
 * If you are looking for a tutorial on how to create your custom template please
   have look [Here](https://www.greengeeks.com/tutorials/article/how-to-create-a-template-for-a-single-post-in-wordpress/).
 * If you already know how to do this and would like to add the plugin in a custom
   template you can use [Do_shortcode](https://developer.wordpress.org/reference/functions/do_shortcode/),
   it should be as simple as: `<?php echo do_shortcode('[show_post_categories show
   ="category"]'); ?>`
 * Ofcourse you could have a look into my code (it is [Public](https://plugins.trac.wordpress.org/browser/show-post-categories/))
   and make a direct call but this has risks, ie. If I update my code it might break..
 * Hope this helps?
 * Have a nice day!

Viewing 1 replies (of 1 total)

The topic ‘add it in single.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/show-post-categories_446def.svg)
 * [Show Post Categories](https://wordpress.org/plugins/show-post-categories/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/show-post-categories/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/show-post-categories/)
 * [Active Topics](https://wordpress.org/support/plugin/show-post-categories/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/show-post-categories/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/show-post-categories/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [willemso](https://wordpress.org/support/users/willemso/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/add-it-in-single-php/#post-9673904)
 * Status: resolved