Results 1 to 4 of 4

Thread: Add custom field - Link

  1. #1
    Thread Starter
    Junior Member ontavu's Avatar
    Join Date
    Dec 2010
    Location
    Casablanca
    Posts
    40
    Thanks
    9
    Thanked 4 Times in 4 Posts

    Add custom field - Link

    hi,

    I try to add custom field with link - title, the link appears but there is a problem with the link, here is the code i use inside single-ad_listing.php:

    <div class='note'><strong><LINK:</strong> <?PHP
    $src = get_post_meta($post->ID, 'src_name', true);
    ?> <!-- On appel le nom de la source -->
    <?PHP
    $url = get_post_meta($post->ID, 'src_url', true);
    ?> <!-- On appel l'url de la source -->
    <a href="<?PHP echo $url ?>"><?PHP echo $src; ?></a>
    <!-- On forme l'url le nom en html --></div>

    But link result : http://www.mywebsite.com/ads/www.the...to_link_to.com


    Any idea how to fix this?

    Thank you

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,978
    Thanks
    170
    Thanked 3,407 Times in 3,278 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
    Junior Member ontavu's Avatar
    Join Date
    Dec 2010
    Location
    Casablanca
    Posts
    40
    Thanks
    9
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Member iamfabian's Avatar
    Join Date
    Aug 2010
    Location
    London, ON
    Posts
    60
    Thanks
    0
    Thanked 18 Times in 11 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    i do. print. web. media. iamfabian

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Add datepicker to custom field as a field type
    By ellie in forum ClassiPress General Discussion
    Replies: 44
    Last Post: April 10th, 2014, 05:45 AM
  2. Replies: 18
    Last Post: October 9th, 2011, 11:24 PM
  3. Inserting a custom field from a custom form into the listing preview
    By Fanatic in forum ClassiPress General Discussion
    Replies: 4
    Last Post: May 1st, 2011, 07:17 PM
  4. [SOLVED] Custom field order in frontend doesn't match with custom field order set in backend
    By bluecafe in forum Report ClassiPress Bugs
    Replies: 11
    Last Post: November 24th, 2010, 08:47 AM
  5. Link Custom Field to Website
    By gomeetpete in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: July 27th, 2010, 09:49 PM