WordPress.org

Forums

Make custom fields link to posts w/ same custom field values? (3 posts)

  1. webmoxie
    Member
    Posted 2 years ago #

    I'm working on a site that basically recreates a print magazine with posts as articles. I've been doing author as a custom field, but I want to be able to link the echoed custom field data to all of the other posts with that same custom field value (effectively, the same author). I'd rather not use categories or users for this as categories are used for issues and creating users is unnecessary for the actual maintenance of the site. Help?

  2. Mihail Semjonov
    Member
    Posted 2 years ago #

    http://codex.wordpress.org/Function_Reference/get_post_custom
    so, in your post you can extract all custom fields keys in to array..
    than make a loop (from all posts) then check if post contains custom filed
    http://wordpress.org/support/topic/check-if-a-custom-field-exists?replies=3
    and if it does then echo the link,title atc

  3. webmoxie
    Member
    Posted 2 years ago #

    Is there a way I can do this without creating another template for custom field loop pages?

Topic Closed

This topic has been closed to new replies.

About this Topic