This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Shortcode works in the menu but not on the home page. I get no results.

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Shortcode works in the menu but not on the home page. I get no results.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20110
    joycevdbjoycevdb
    Participant

    Hello,

    This shortcode works in the menu but not in the homepage:

    I use this shorcode in the MENU under HOW DO I:

    [wd_asp elements='search,results,settings' ratio='100%,100%,100%' id=2]

    I used the same shortcode in the homepage and no results.
    See the How do I section in the homepage and try it out….there must be a setting I’m missing.

    Thanks!
    Joyce

    #20115
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Joyce!

    I believe I see what the problem is. Since you included log-in details, I fixed it for you. The problem was, that the same search instance is twice on the same page, with a custom results and settings shortcode. This would not be an issue, however because of the custom results/settings position, the second search bar (in the content) pushes it’s results to the first bar container – as the settings shortcode was already found for the first one in the menu.
    To resolve this, I have:
    – Made a copy of the home search: https://i.imgur.com/P02Yow6.png
    – Then replaced the content shortcode with this new search ID (same shortcode, different ID):
    [php][wd_asp elements='search,results,settings' ratio='100%,100%,100%' id=3][/php]

    Now, both searches will work.

    #20123
    joycevdbjoycevdb
    Participant

    Wow!! Thank you so much! I never would have figured that out!!
    I appreciate your help!

    #20124
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Shortcode works in the menu but not on the home page. I get no results.’ is closed to new replies.