Title: Adding shortcode to external splash page
Last modified: August 30, 2016

---

# Adding shortcode to external splash page

 *  [Brian07002](https://wordpress.org/support/users/brian07002/)
 * (@brian07002)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/adding-shortcode-to-external-splash-page/)
 * Hi,
 * I want to display a splash page before my theme loads, I have figured out how
   to do that and I will post my code below, but what I also need to do is use shortcode
   on the splash page as well. I have come close to getting it, but not the cigar
   🙁
 *     ```
       <?php
   
       /**
        * Front to the WordPress application. This file doesn't do anything, but loads
        * wp-blog-header.php which does and tells WordPress to load the theme.
        *
        * @package WordPress
        */
   
       /**
        * Tells WordPress to load the WordPress theme and output it.
        *
        * @var bool
        */
       define('WP_USE_THEMES', false);
   
       /** Loads the WordPress Environment and Template */
       require( dirname( __FILE__ ) . '/wp-blog-header.php' );
       require( 'wp-load.php' );
   
       get_header();
   
       echo do_shortcode('[wpgmza id="1"]');
   
       get_footer();
   
       ?>
       ```
   
 * So far, what I have found is that I need to have the get_header(); and get_footer();
   code in place to get the shortcode working, but by using the header and footer,
   I am getting the whole look of the theme as well, I just want the background /
   blank page. Is there some way to do this?
 * NOTE: I don’t know if this is going to make a difference, most likely will, the
   code above is from the wordpress installation path, currently: /var/www/html/
   wordpress/index.php
 * I am going to use /var/www/html/index.php using .htaccess DirectoryIndex to specifiy
   my splash.php page like so:
 * .htaccess file:
 *     ```
       # BEGIN WordPress
   
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
   
       DirectoryIndex index.html splash.php
       ```
   
 * Thank you
    Brian

Viewing 1 replies (of 1 total)

 *  Thread Starter [Brian07002](https://wordpress.org/support/users/brian07002/)
 * (@brian07002)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/adding-shortcode-to-external-splash-page/#post-6689686)
 * Hi,
 * It seems to me that it just has something to do with this particular plugins 
   shortcode because I am able to execute other shortcode on that same splash page,
   just not the wpgmza shortcode, by the way, that is the wp-google-maps shortcode
   which I do like as it has features that I really need to use. Anyone have any
   other suggestions that may make the wp-google-maps shortcode work in my splash
   page located outside my wordpress install folder?
 * Brian

Viewing 1 replies (of 1 total)

The topic ‘Adding shortcode to external splash page’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Brian07002](https://wordpress.org/support/users/brian07002/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/adding-shortcode-to-external-splash-page/#post-6689686)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
