WordPress.org

Ready to get started?Download WordPress

Forums

Faceted Search
Display Selected Categories in Results (9 posts)

  1. ARHistoryHub
    Member
    Posted 2 years ago #

    Great plugin! I'm implementing it here - http://www.arhistoryhub.com/advanced-search. I was wondering how I would go about displaying the selected categories at the top of the results? For example - "Showing X results for Category A, Category C, and Category Q."

    Thanks.

    http://wordpress.org/extend/plugins/faceted-search/

  2. AndrewUlrich
    Member
    Plugin Author

    Posted 2 years ago #

    To display the selected categories, use $_REQUEST['strm'], which is an array of all term ids that have been selected.

    You can put a query into your search.php page too look up all the terms by their term id, and display them.

  3. Deyson
    Member
    Posted 2 years ago #

    Hello Andrew, may you please explain where and how I should place the code above.

    Thank you very much. :)

  4. AndrewUlrich
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry, but I'm going to have to stop and say that that's beyond the scope of my maintenance for this plugin. $_REQUEST['strm'] is the array that holds all the term ids, which you can count and display however you like, but I can't write that code for you. You're going to have to figure out yourself how to proceed further.

  5. pipedragon72
    Member
    Posted 1 year ago #

    Hey Deyson
    Did you ever manage to sort out how to do this? I'm implementing the search facility and would like to show the categories searched on to the user too...

  6. Deyson
    Member
    Posted 1 year ago #

    Hello Pipedragon. Sorry I have not. I am now using http://wordpress.org/extend/plugins/ajaxy-search-form/

  7. pipedragon72
    Member
    Posted 1 year ago #

    ooo will check it out; thanks for the speedy reply!

  8. Deyson
    Member
    Posted 1 year ago #

    No problem :)

  9. nagendrakumar
    Member
    Posted 1 year ago #

    Is this plugin works well with version 3.5 ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic