Results 1 to 6 of 6

Thread: Custom Fields Display - Display Only Desired Custom Fields

  1. #1
    Thread Starter
    danmont's Avatar
    Join Date
    Jul 2011
    Location
    United States
    Posts
    95
    Thanks
    18
    Thanked 3 Times in 2 Posts

    Custom Fields Display - Display Only Desired Custom Fields

    WP 3.2.1 CP 3.1.5

    I have 3 Custom Fields set up, (Country, City, Email)

    I would like display only (Country and City) but not Email due to span issue.
    I read some post thread about using the CSS file to hide fields but this is not effective bk robots can still read the email address.

    This line of Code in single-ad_listing.php displays all the Costume Fields.

    // 3.0+ display the custom fields instead (but not text areas)
    cp_get_ad_details( $post->ID, $cat_id );


    Does anyone have any ideas how how to display only the desired fields (Country, City)?

    Something like: cp_get_ad_details( 'cp_country', 'cp_city' );

    thanks

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,990
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    danmont's Avatar
    Join Date
    Jul 2011
    Location
    United States
    Posts
    95
    Thanks
    18
    Thanked 3 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    dragos's Avatar
    Join Date
    Jan 2011
    Location
    Romania
    Posts
    63
    Thanks
    4
    Thanked 9 Times in 8 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. The Following User Says Thank You to dragos For This Useful Post:

    danmont (March 23rd, 2012)

  6. #5
    Thread Starter
    danmont's Avatar
    Join Date
    Jul 2011
    Location
    United States
    Posts
    95
    Thanks
    18
    Thanked 3 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #6
    Thread Starter
    danmont's Avatar
    Join Date
    Jul 2011
    Location
    United States
    Posts
    95
    Thanks
    18
    Thanked 3 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. The Following User Says Thank You to danmont For This Useful Post:

    Fanatic (January 5th, 2019)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [MOD NEEDED] display custom fields in sm sticky posts
    By pinocchio in forum ClassiPress General Discussion
    Replies: 5
    Last Post: February 28th, 2012, 03:45 AM
  2. Custom Fields possibility for Separator Fields
    By coolsage in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: September 29th, 2011, 03:41 AM
  3. More Fields in Registerform and Profile-Page / Custom Fields
    By magicfingers in forum ClassiPress General Discussion
    Replies: 2
    Last Post: September 4th, 2011, 06:39 PM
  4. New user questions - Forms, Custom fields and ad display
    By landog in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: July 15th, 2011, 04:26 PM
  5. [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