WordPress.org

Ready to get started?Download WordPress

Forums

Short codes don't work, show up as text (10 posts)

  1. shortcodemonster
    Member
    Posted 1 year ago #

    Hey,

    I have been searching for a solution for almost a week now and couldn't find anything, so I've decided to post here for help.

    My short codes simply show up as text and aren't being processed.

    I have tried:
    1. Deactivating all the plugins
    2. Using the default theme
    3. reinstalling all the plugins

    Here is an example:
    http://www.manoushcuisine.com/iranian-takeaway/

    Notice: "[slideshow gallery_id="3"]" showing up instead of a gallery that should be showing up produced by the "Slideshow Gallery" plugin.

    This is not a plugin problem. For one, the same thing seems to be happening with the Flickr / all other plugins. Secondly, when I insert <?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?> in the header or footer it seems to work.

    Could anyone assist me in making shortcodes work? I am lost.

    Thank you in advance.

  2. govpatel
    Member
    Posted 1 year ago #

    what plugin are you using for gallery and have tried to add shortcode in html tab

  3. shortcodemonster
    Member
    Posted 1 year ago #

    As I said, the plugin is called "Slideshow Gallery". Here is a link to it. http://wordpress.org/extend/plugins/slideshow-gallery/

    And yes, I have.

  4. tiaanswart
    Member
    Posted 1 year ago #

    Check if you have the below code somewhere in that page template:

    <?php remove_all_shortcodes(); ?>

  5. shortcodemonster
    Member
    Posted 1 year ago #

    It isn't. sorry for the late reply

  6. radhika
    Member
    Posted 1 year ago #

    @shortcodemonster

    use do_shortcode() function to print shortcode in your page content.

    <?php echo do_shortcode( $content ) ?>

  7. shortcodemonster
    Member
    Posted 1 year ago #

    <?php echo do_shortcode( '[slideshow gallery_id="3"]' ) ?>

    pasting that into my page HTML editor results in neither the text nor the plugin to display.

    i checked the page source and WP is parsing it inside the <p> tag for some reason.

    However if I paste that line in one of the core files of the theme (I.E. header.php) it shows up. That's not of much use to me though, as I need to show up in that single page only.

    Any other ideas?

  8. shortcodemonster
    Member
    Posted 1 year ago #

    no more help? Still struggling with this

  9. cynnie88
    Member
    Posted 1 year ago #

    Without actually digging into your files to debug it, the only advice I can suggest is to rebuild the shortcodes in your functions.php.

  10. govpatel
    Member
    Posted 1 year ago #

    <?php echo do_shortcode( '[slideshow gallery_id="3"]' ) ?>

    pasting that into my page HTML editor results in neither the text nor the plugin to display

    You can add php code in editor

    You need edit your template

Topic Closed

This topic has been closed to new replies.

About this Topic