• Resolved spike210957

    (@spike210957)


    When I include an Envira-Gallery shortcode like this:

    [envira-gallery id=”19651″]

    in an advert the gallery does not display. Only the text above displays. However, doing the same in a post works fine and the gallery is displayed.

    There’s nothing on the console to indicate any javascript problems.

    Any ideas how to resolve?

    • This topic was modified 7 years, 2 months ago by spike210957.
    • This topic was modified 7 years, 2 months ago by spike210957.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, in your theme functions.php file add the code below

    
    add_filter( "adverts_the_content", "do_shortcode" );
    

    This will enable shortcodes in adverts description, but note that if you allow users to post ads this is a potential security hole as the users will be able to run any shortcode on your site.

    Thread Starter spike210957

    (@spike210957)

    Marvellous! That’s done the trick thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Envira Gallery not displaying’ is closed to new replies.