Title: Create custom single.php file
Last modified: August 22, 2016

---

# Create custom single.php file

 *  [ifixlv](https://wordpress.org/support/users/ifixlv/)
 * (@ifixlv)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/create-custom-singlephp-file/)
 * Hi. I created my website [http://www.ifixlv.com](http://www.ifixlv.com) with 
   Customizr theme. Now I found out that i have many errors in Google Webmaster 
   tool – structured data – hentry. In order to fix that I need to modify single.
   php file which my current theme do not have.
 * So I have a question, can I create a single.php file for current theme? If yes,
   how to do it?
 * Is there another version of Customizr that already contains the single.php file?
 * PLEASE HELP. REALLY NEED TO FIX THIS.

Viewing 2 replies - 31 through 32 (of 32 total)

[←](https://wordpress.org/support/topic/create-custom-singlephp-file/page/2/?output_format=md)
[1](https://wordpress.org/support/topic/create-custom-singlephp-file/?output_format=md)
[2](https://wordpress.org/support/topic/create-custom-singlephp-file/page/2/?output_format=md)
3

 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/create-custom-singlephp-file/page/3/#post-5200861)
 * Well, 3 days is a long time in Computing!
 * We can now say definitively that it won’t affect your Google page rank, because
   Google has now [officially dropped authorship from its ranking](http://wptavern.com/google-authorship-is-officially-dead-wordpress-authorship-plugins-are-now-obsolete).
 *  [Nicolaie](https://wordpress.org/support/users/szabadkai/)
 * (@szabadkai)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/create-custom-singlephp-file/page/3/#post-5200927)
 * Hi,
 * I have some kind of solution to this problem with following additions in the 
   child theme’s functions.php. I’d like to add more details too. May be someone
   can help me too.
 *     ```
       function metas_in_pages( $bool) {
         return is_page() || $bool;
       }
       add_filter('tc_show_post_metas', 'metas_in_pages');
   
       function my_author_meta() {
       	$usp_author_name = get_the_author();
       	$usp_author_url  = get_author_posts_url( get_the_author_meta( 'ID' ) );
   
       	return sprintf( '<span class="author vcard"><a class="url fn" href="%1$s" title="%2$s" rel="author">%2$s</a><div class="org">My Company Name</div></span>' ,
       			esc_url( $usp_author_url ),
       			esc_attr( $usp_author_name )
       			);
       }
       add_filter( 'tc_author_meta', 'my_author_meta');
       ```
   
 * Now this works for plain pages too!
 * Cheers
    Nicolaie

Viewing 2 replies - 31 through 32 (of 32 total)

[←](https://wordpress.org/support/topic/create-custom-singlephp-file/page/2/?output_format=md)
[1](https://wordpress.org/support/topic/create-custom-singlephp-file/?output_format=md)
[2](https://wordpress.org/support/topic/create-custom-singlephp-file/page/2/?output_format=md)
3

The topic ‘Create custom single.php file’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

 * 32 replies
 * 6 participants
 * Last reply from: [Nicolaie](https://wordpress.org/support/users/szabadkai/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/create-custom-singlephp-file/page/3/#post-5200927)
 * Status: not resolved