• Resolved pramodd

    (@pramodd)


    Here is my problem:

    1] I am showing key/value pairs for each post after
    the post text.

    Example: Assume that I have a wordpress blog which is
    a job site. Every post on the site will contain the
    job description followed by the Key “Location” to
    display the location of the job.

    So the key value is shown as:

    Location: London | Paris | California

    2] I want the above values [London, Paris, California
    ] to be shown as a hyperlink. When I click on the
    London hyperlink it should show me all posts [job
    openings] in London. If I click on Paris it should
    show me all posts [job openings] in Paris and so on.

    Is there a plugin to do this? If NOT how do I implement this feature using custom SQL query?

    Any help will be deeply appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Couldn’t you use tags (Ultimate Tag Warrior plugin) or even Categories for that instead of Custom Fields?

    Can you not just use category setups? Like, when you wrote a post, just be sure to add the category for whatever city you want it to be in. Then it’ll appear in all (as long as you keep it in “Uncategorized” – or whatever your default post category is in) *and* in whatever city you want.

    Thread Starter pramodd

    (@pramodd)

    Category is already displayed before key/value pair.

    This is how the post looks:

    Post Title
    Post Body
    Posted in Developer, Customer Services | Location: UK, USA

    Clicking on the category name [i.e. Developer or Customer Services] shows list of posts within that category.

    I want to show list of posts by location. If a user clicks on UK it should show all posts for UK & if he clicks on USA it should show all posts [in this case jobs] for USA and so on.

    I hope I was able to explain properly.

    Please, don’t double post – duplicate posts get deleted without warning!

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    You should try using Tags instead of custom fields for this. Tags will do what you want almost automatically.

    Try Ultimate Tag Warrior.

    Thread Starter pramodd

    (@pramodd)

    Can you tell me how to use Ultimate Tag Warrior for this purpose?

    First download, install it… and you’ll realize: you can “tag” your posts with UK or US for example, and those tags will become clickable links when displayed.

    Thread Starter pramodd

    (@pramodd)

    Thanks!!! It worked.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Shows posts based on key/value’ is closed to new replies.