Support » Plugin: T&P Gallery Slider » Shortcode disappear

  • Hi, a new problem here – when I create a new post and put a shortcode [tp_gallery] and save the post, the postcode is being cut from the code and of course no slider is being created. Strange even more that it still works on older posts.

    Any hints please?

    Is there a way to put the short code for good for each post by modifying content-single.php? if yes, what would be the syntax?

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author pey22


    Hello magda_u you can use the short code in your single.php by passing the post id like this:

    <?php echo do_shortcode('[tp_gallery post_id="id"]'); ?>

    replace id with the current post id.

    if the [tp_gallery] does not work in the post content, make sure that you put it in the HTML editor and not in the visual.

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode disappear’ is closed to new replies.