Forums

Dynamic "filtering" of results (3 posts)

  1. DaleP85
    Member
    Posted 1 year ago #

    Hello all,

    I need a little help with some functionality I just cant get my head around. I am trying to create an "archive" / "search" that can be filtered dynamically to show what posts the user would like to see.

    I expect this will envolve guery_post but i am not advanced enough at wordpress/php to figure out what i need to do.

    EXAMPLE:

    User is searching for "title" and this displays four results, Title A, Title B, Title C and Title D.

    Normally this will bring up A, B, C and D in latest order.

    Heres the senario i really need help with, imagine the following:

    Title A has a tag of Review and in category XBOX 360
    Title B has a tag of Review and in category PC
    Title C has a tag of Review and in category PS3
    Title D has a tag of News and in category PC

    Now on this search result i want the results page order to be either:
    TITLE (Alphabetical)
    DATE (Standard latest order)
    SCORE (a custom field - dont worry about this too much)

    which the user can change the page order by clicking on a hyperlinked title...

    I would also like the user to be able to select REVIEW, PREVIEW or NEWS to filter the results.

    and also be able to select XBOX 360, PS3, PS2, PC ect.. to filter even further if they require.

    So a user would get a search result for "title" and be able to filter the many results to what is relevent to them, based on the example above selecting REVIEW would mean A, B and C would be displayed, but not D as that was a PREVIEW.

    All of these filter options i need to happen dynamically - just a button/hyperlink ect.. that can change the query_post args (eg: "tag=review&cat=xbox360&orderby=title&order=asc"). I just dont know how to do this "live" rather that specified like in the php files.

    I know how i could achieve this with pages/page templates but that would create 30ish seperate pages where i think just some advanced coding could do the trick in one php file....

    Hopefully you can see where im coming from and asking, you can see a concept of what im looking for here:

    Click here for image (on imageshack)

    Thanks for reading and I hope you can help!

    Dale

  2. DaleP85
    Member
    Posted 1 year ago #

    Can anyone assist with the above?

  3. alxvallejo
    Member
    Posted 4 months ago #

    I'm looking for the same solution. Let me know if you came up with one!

Topic Closed

This topic has been closed to new replies.

About this Topic