Results 1 to 3 of 3

Thread: Code to get the ad_listings image url

  1. #1
    Thread Starter
    Senior Member drabello's Avatar
    Join Date
    Nov 2010
    Location
    Rio de Janeiro
    Posts
    224
    Thanks
    23
    Thanked 19 Times in 15 Posts

    Code to get the ad_listings image url

    I need to get the url of the first ad photo. only the url...

    The code to retrieve the ad_listings images information is this, but i need only the url...
    Code:
    <?php if(get_post_meta($post->ID, 'images', true)) echo cp_get_image_thumbs_legacy($post->ID, get_option('thumbnail_size_w'), get_option('thumbnail_size_h'), $post->post_title); else cp_get_image_url_single($post->ID, 'thumbnail', $post->post_title, -1); ?>
    this code takes all the information of the image, anyone know whats the code to get only the url??????????

    something like this:

    Code:
    <?php echo get_post_meta($post->ID, 'cp_state', true); ?>

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,958
    Thanks
    169
    Thanked 3,405 Times in 3,276 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
    Senior Member drabello's Avatar
    Join Date
    Nov 2010
    Location
    Rio de Janeiro
    Posts
    224
    Thanks
    23
    Thanked 19 Times in 15 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. post image using free image hosting sites option
    By vincent in forum ClassiPress General Discussion
    Replies: 3
    Last Post: October 9th, 2011, 11:59 PM
  2. [SOLVED] Image Resize Type show black shadow over the image
    By halimo in forum Report ClassiPress Bugs
    Replies: 30
    Last Post: March 12th, 2011, 10:41 PM
  3. No image posted with ad, Ad shouldnt post a default image
    By tklein in forum ClassiPress General Discussion
    Replies: 1
    Last Post: March 8th, 2011, 08:30 AM