Forums

Getting URL from Custom Fields (3 posts)

  1. sirhank
    Member
    Posted 10 months ago #

    I have added a custom field called linker and added a value similar to this: http://www.goinghere.co.uk/here/andhere

    I have the following code that is working except for the part in bold:

    <tr class="%AUTO_ROW_CLASS%"><td class="rank"><h3>%RANK_ID%</h3></td><td style="width:120px; height:120px;"><a href="%PERMALINK%"><img src="%IMAGE%" width="100px" height="100px" class="alignleft" ></a></td><td><a href="%PERMALINK%" style="font-size: 20px; font-weight: bold;"><h2>%TITLE%</h2></a>%STARS%  Rating: %RATING% / %MAX_RATING% (%VOTES% votes cast)</td></tr>
    <tr><td></td><td colspan="2" style="font-size: 16px; line-height: 150%;padding: 0 10px 0 0;" > %EXCERPT%</td></tr>
    <tr><td colspan="3"><p align="center"><a href="%PERMALINK%" class="round" style="font-size: 12px"><ins>Read The Review</ins></a><img src="http://local.bestgolfswingtips.co.uk/images/blank.gif" width="100px" height="10px" alt="" /><strong><a href="get_post_meta($post_id, linker, $single);"></strong> class="round" style="font-size: 12px"><ins>Visit The Website</ins></a></p><hr style="color:#99FF00"></td></tr>
    <tr><td></td></tr>

    All I am trying to do is to create a url link that gets its value from the custom field named linker

    eg

    Any help would be greatly appreciated

    Thanks

  2. sirhank
    Member
    Posted 10 months ago #

    Sorry the bold part has not shown up properly ... here is the bit of code I am having problems with:

  3. sirhank
    Member
    Posted 10 months ago #

    `<a href="get_post_meta($post_id, linker, $single);">

Reply

You must log in to post.

About this Topic