Site logo

[Support request] Search Query – Dynamic Data

Home Forums Support [Support request] Search Query – Dynamic Data

Home Forums Support Search Query – Dynamic Data

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2538939
    Jeffrey

    I am currently editing the search results page.
    I have created Block – Loop Template.

    All looks good but there are only search results and I can’t show “Search Results for: keyword”.
    I can’t find how to add “keyword” dynamically (Default WordPress has it but my Block – Loop Template does not).

    #2538972
    David
    Staff
    Customer Support

    Hi there,

    for now you need to create a shortcode with this PHP Snippet:

    add_shortcode('search_term', function(){
        return get_search_query();
    });

    then you can add the [search_term] inside a Headline block in the block element

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.