Variable

Ivory Search Forums Support Variable

Viewing 3 reply threads

You must be logged in to create new topic or reply to the topic.

  • Author
    Posts
    • #6204
      maxqualy
      Participant
      • Topics: 1
      • Replies: 1

      How can i show the value searched below the input field? Not only inside the input.
      What is the variable?

      Like:
      $searched = ????? (value searched)
      echo $searched;

    • #6206
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,754

      I hope you are well today and thank you for your question.

      You can use the below function to get the searched value.

      get_search_query()

      Best regards,
      Ivory Search Support

    • #6215
      maxqualy
      Participant
      • Topics: 1
      • Replies: 1

      I’m trying to use inside the function below but it’s not working:

      function tags_markup( $field, $post ) {
      echo get_search_query();
      }

    • #6221
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,754

      It only works on the search results page.

      If you are not a developer then you can consider hiring a developer to develop it for you. You can hire a developer from any freelance site or WordPress agency.

      You can also consider us to develop it for you using the form https://ivorysearch.com/custom-work/

Viewing 3 reply threads

You must be logged in to create new topic or reply to the topic.