I want to use shortcode wordpress in label

Home Forums Product Support Forums Ajax Search Pro for WordPress Support I want to use shortcode wordpress in label

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 4 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24838
    hozour63
    hozour63
    Participant

    Hi

    I want to use shortcode wordpress in label

    For example :
    Layout Options > Results Behaviour > Did you mean text
    —————————————————————
    Did you mean: <b> [shortcode ] </b>
    —————————————————————-
    Can you help me to fixed this problem?

    Best regards
    Ashkan

    #24847
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Well, the only possible way I think to do that is to make changes to the results template files. Please first read this kowledge-base, for what that means.

    Then make a copy of the no-results.php template file into your (child) theme /asp/ folder. Then replace it’s contents with this: https://gist.github.com/anag0/aa57a0d349a77c51ddb5e0e295df666d

    That modified template file version executes shortcodes within that text first. Please note, that some shortcodes may not be loaded during ajax requests, or out from the post context.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.