• Resolved freedom667

    (@freedom667)


    I have a subtitle plugin and I want to show it in results popup.

    $output .= ‘<div class=”smart-search-post-title”>’.do_shortcode( ‘[wc_ps tag=”h4″]’ ).'</div>’;?>

    I wrote this but does not work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YummyWP

    (@yummy-wp)

    Hi there

    You just need to add a product id inside the shortcode.
    [wc-ps id="' . $post->ID . '"]
    Like so
    $output .= '<div class="smart-search-post-title">' . do_shortcode( '[wc-ps tag="h4" id="' . $post->ID . '"]' ) . '</div>';?>

    Thread Starter freedom667

    (@freedom667)

    thanks for help ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘put a shortcode’ is closed to new replies.