Title: Using shortcode in the theme&#8217;s php files
Last modified: October 23, 2018

---

# Using shortcode in the theme’s php files

 *  [carinalves](https://wordpress.org/support/users/carinalves/)
 * (@carinalves)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/using-shortcode-in-the-themes-php-files/)
 * Hi!
 * I’m using the shortcode providaded by this plugin directly in the php files of
   my custom post type, but even though everything seems to be working fine, somehow
   when I open the tab where the shortcode is, the view is completely black and 
   will display correctly only when I change the size of the browser window.
 * Do you have any idea why?
 * Thnaks in advance!

The topic ‘Using shortcode in the theme’s php files’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-google-street-view-shortcode_93a1a5.
   svg)
 * [Shortcode for Google Street View](https://wordpress.org/plugins/wp-google-street-view-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-street-view-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-street-view-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-street-view-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-street-view-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-street-view-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [carinalves](https://wordpress.org/support/users/carinalves/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/using-shortcode-in-the-themes-php-files/)
 * Status: not resolved