• I am trying to place an accordion on my search results page just above the search results using the do_shortcode function in my PHP code but it won’t work.

    I’m using do_shortcode as I am supposed to, which is:
    <?php echo do_shortcode( '[WPSM_AC_SH id=186]' ); ?>

    But the accordion does not show.

    Is there a way to get the accordion to show anywhere I place the “do_shortcode” in the PHP code of any type of page, like search results page?

    • This topic was modified 7 years, 10 months ago by toolsavvy.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter toolsavvy

    (@toolsavvy)

    Also, I tried using other shortcodes in place of the Accordion shortcode within the do_shortcode line above and it works fine. So it’s not a syntax error in the code or anything of that nature.

    Thread Starter toolsavvy

    (@toolsavvy)

    Are you still supporting this plugin? I can’t buy the pro version if I can’t get the free version to work first ??

    I have tried

    <?php echo do_shortcode( '[WPSM_AC_SH id=186]' ); ?>
    
    <?php echo do_shortcode( "[WPSM_AC_SH id=186]" ); ?>
    
    <?php echo do_shortcode( '[WPSM_AC_SH id="186"]' ); ?>
    
    <?php echo do_shortcode( "[WPSM_AC_SH id='186']" ); ?>

    None work.

    Plugin Author wpshopmart

    (@wpshopmart)

    Can you please share me that page url where you have using above shortcodes?

    • This reply was modified 7 years, 9 months ago by wpshopmart.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Place accordion using “do_shortcode”’ is closed to new replies.