Forums

Combining custom fields into one sentence. (2 posts)

  1. michaelzil
    Member
    Posted 3 years ago #

    I have a Photoblog, and many of the photos that are posted are sent from various sources.
    Each post has 4 custom fields:
    Photographer
    Photographer's site
    Location
    Keywords.

    Using <p class="postmetadata alt"> , I've managed to show all those fields in the post, but I'm trying to combine the first three keys in one sentence , something like:

    Photographed by _______ on location:_______
    (The first blank space should include the combined photographer's name and site link, and the second blank space should include the location key value)

    And than, on the next line I want to show only the value of the fourth field (Keywords)

    Having no experience as a web developer, I have no idea how to write the php statement.

    Can anyone help me here?

    Thanks.

  2. Dgold
    Member
    Posted 3 years ago #

    You can do it with just code (without a plugin), but it is slightly easier with this plugin:

    http://wordpress.org/extend/plugins/get-custom-field-values/

    http://coffee2code.com/wp-plugins/get-custom-field-values/

    It's pretty easy and there's good instructions on that 2nd link.

    Your site sounds cool! Good luck and enjoy.

  3. Dgold
    Member
    Posted 3 years ago #

    You can do it with just code (without a plugin), but it is slightly easier with this plugin:

    http://wordpress.org/extend/plugins/get-custom-field-values/

    http://coffee2code.com/wp-plugins/get-custom-field-values/

    It's pretty easy and there's good instructions on that 2nd link.

    Your site sounds cool! Good luck and enjoy.

Topic Closed

This topic has been closed to new replies.

About this Topic