WordPress.org

Ready to get started?Download WordPress

Forums

List Posts based on custom field values. (4 posts)

  1. lellie
    Member
    Posted 8 years ago #

    I currently use custom fields to store the author of articles on our university paper's website.. Basically as the articles are uploaded by a number of sub editors but not usually the writer of the article we use a custom field to enter the author name.

    What I would like is a list of each of the writers and a list of all the posts they have made.

    So ideally I could have a page - "writers". I don't mind manually listing each writer and making a seperate call for each writer if this makes it easier - but I need some way of getting titles of all the posts with a specific custom field value..

    So:

    Writer Name 1:
    list all posts by writer name 1.

    Writer Name 2:
    list all posts by writer name 2.

    etc..

    http://wordpress.org/support/topic/36232 seems to be doing a pretty similar thing - but not sure what the final solution is.. I basically need help querying the post meta table to give me the list of posts for a writer..

  2. lellie
    Member
    Posted 8 years ago #

    no one know? I'll have to have a play with it myself but go knows how I'll do it.

  3. Dgold
    Member
    Posted 7 years ago #

    This should be possible... I'm trying something similar, well, exactly the same except for me the custom field is the singer instead of the writer. This blog just has 3 singers associated, 1 with every post. I would like 3 nice lists of who sings what. Same idea.

    Thinking of using Get Custom Fields, but it calls the contents of the custom field itself, not the headline of the post which has a custom field value that I specify (such as Singer 1). So this plugin will give me a list that looks like Singer 1, Singer 3, Singer 1, Singer 1, Singer 2.... but it won't give me Singer 1: Song 1, Song 5, Song 7. So far.

  4. geoffe
    Member
    Posted 7 years ago #

    Seems this is a common support question.

    One solution to this problem can be found here:
    http://wordpress.org/support/topic/73513?replies=22#post-385388

Topic Closed

This topic has been closed to new replies.

About this Topic