Title: do_shortcode HELP
Last modified: August 21, 2016

---

# do_shortcode HELP

 *  [ManuelGarciaPH](https://wordpress.org/support/users/manuelgarciaph/)
 * (@manuelgarciaph)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-help/)
 * Hello,
 * I’ve been trying to automatically post all the slideshow in my post. I usually
   add `[slideshow post_id="POST ID OF MY POST"]` to each one of my post to do the
   job but I think there’ a better way by incorporating it inside the theme.
 * I tried to add something like this in my single.php:
 *     ```
       <?php
       		$postid = get_the_ID();
       		echo do_shortcode('[slideshow post_id='.$postid.']'); ?>
       ```
   
 * Any help?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [graphical_force](https://wordpress.org/support/users/graphical_force/)
 * (@graphical_force)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-help/#post-4743579)
 * What happens when you run that code? Do you get an error?
 *  Thread Starter [ManuelGarciaPH](https://wordpress.org/support/users/manuelgarciaph/)
 * (@manuelgarciaph)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-help/#post-4743619)
 * Nothings shows 🙁 It’s a blank page.
 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-help/#post-4743629)
 * What plugin are you using? What theme are you doing this to?
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-help/#post-4743636)
 * If you’re getting blank pages like that, it means that there’s some error somewhere
   in your coding.
 * In your `wp-config.php` file, change this value to true:
 * `define('WP_DEBUG', true);`
 * Taht will let you see the error messages, and see what the error is and where
   it is. You can also get this info form your servers error logs, so that’s anohter
   option.
 * That’s all there is to it. Find out what the error actually is and where it’s
   occuring, and you’ll be able to fix it.
 *  Thread Starter [ManuelGarciaPH](https://wordpress.org/support/users/manuelgarciaph/)
 * (@manuelgarciaph)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-help/#post-4743759)
 * Hello, I’m using a custom theme and a slideshow plugin. Is there any problem 
   with the syntax?
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-help/#post-4743761)
 * The syntax looks OK, but did you do what I suggested above? That’s the _only_
   way that you’re going to find the error. You need to do some debugging of your
   own to find out what the actual problem is.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘do_shortcode HELP’ is closed to new replies.

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-help/#post-4743761)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
