Title: Code for single.php
Last modified: August 31, 2016

---

# Code for single.php

 *  Resolved [Web-Pepper](https://wordpress.org/support/users/pctevree/)
 * (@pctevree)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/code-for-singlephp/)
 * We use your Starbox Pro at the website [http://www.dehippevegetarier.nl/](http://www.dehippevegetarier.nl/)
 * Now we want to paste a code in the single.php instead of using the auto-insert
   at the options.
 * I found the code below
 *     ```
       <?php
       global $post;
       $author = get_userdata($post->post_author);
   
       echo starBoxShow( $author->ID ); ?>
       ```
   
 * This IS showing the Starbox, but i get them twice.
 * As soon as i deactivate the option (in Starbox Settings) Load Starbox in (POSTS)
   they ar both gone!
 * Hope you can help, what code should i use in the singele.php to show the Starbox?
 * [https://wordpress.org/plugins/starbox/](https://wordpress.org/plugins/starbox/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Web-Pepper](https://wordpress.org/support/users/pctevree/)
 * (@pctevree)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/code-for-singlephp/#post-7236805)
 * Thank you to an email of [@support](https://wordpress.org/support/users/support/),
   we found out what we needed:
 *     ```
       <?php echo do_shortcode('[starbox theme="fancy"]'); ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Code for single.php’ is closed to new replies.

 * ![](https://ps.w.org/starbox/assets/icon-256x256.png?rev=1974206)
 * [Starbox - the Author Box for Humans](https://wordpress.org/plugins/starbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/starbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/starbox/)
 * [Active Topics](https://wordpress.org/support/plugin/starbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/starbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/starbox/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [single.php](https://wordpress.org/support/topic-tag/single-php/)

 * 1 reply
 * 1 participant
 * Last reply from: [Web-Pepper](https://wordpress.org/support/users/pctevree/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/code-for-singlephp/#post-7236805)
 * Status: resolved