Results 1 to 3 of 3

Thread: How do you display a specific custom field?

  1. #1
    Thread Starter
    Member sean's Avatar
    Join Date
    May 2011
    Location
    Baguio, Philippines / Guam, USA
    Posts
    57
    Thanks
    10
    Thanked 4 Times in 3 Posts

    How do you display a specific custom field?

    I know in single-listing this gets all the custom fields:

    <div class="listing-fields">
    <?php the_listing_fields(); ?>
    </div>

    How can we just get the contents of one field?

    I have tried this but it did not work:
    <?php get_post_meta( $post->ID, 'listing-custom-field-youtube', true ) ?>

    Figuring out how to get an individual custom field is the first thing I need to know how to do.

    The next I need to figure out how to turn it into a clickable link, or even better, be able to have it be a clickable image like the facebook icon.

    I already have custom fields containing the URLs for; youtube, linkedin, google+, etc. Just need to figure out how to make them function like the facebook image link.

    Thanks in advance.

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Member sean's Avatar
    Join Date
    May 2011
    Location
    Baguio, Philippines / Guam, USA
    Posts
    57
    Thanks
    10
    Thanked 4 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to set up a custom field with specific arrange of numbers
    By sergiomsperb in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: December 7th, 2011, 09:43 AM
  2. v3.0.4 Custom field display ordering
    By alinimmo in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: May 11th, 2011, 05:54 PM
  3. [HELP] Custom Field Display MOD, I want to display icons
    By teller in forum ClassiPress General Discussion
    Replies: 1
    Last Post: October 11th, 2010, 09:58 AM
  4. Custom Field Display
    By kwbridge in forum ClassiPress General Discussion
    Replies: 0
    Last Post: April 8th, 2010, 04:26 PM
  5. Custom Field Display
    By kwbridge in forum Help Using ClassiPress
    Replies: 0
    Last Post: December 31st, 1969, 07:00 PM