WordPress.org

Forums

[resolved] get_search_query does not return tag name (2 posts)

  1. shadez
    Member
    Posted 2 years ago #

    hi...
    when i do a tag search, i am getting the proper results...
    but what is confusing is that get_search_query() doesnt return the tag name itself when used.

    example:
    website.com/tag/hello
    - returns all posts wit tag 'hello'
    - but doesnt return 'hello' string when using get_search_query().

    any ideas?

  2. shadez
    Member
    Posted 2 years ago #

    ok its single_tag_title( '', false ) and not get_search_query

Topic Closed

This topic has been closed to new replies.

About this Topic