• Hi,

    I’m trying to echo the title into this code into a link but it doesnt let me I’ve entered $post_title but nothing happening, any help?

    <?php $thereislink_zonein = get_post_meta($post->ID, link_zonein, true); if($thereislink_zonein){ ?>
    <table cellpadding="2" cellspacing="5" class="linktable">
    <tr>
    <td style="width: 150px;font-size:14px;"><b>Zonein</b></td>
    <td class="siteparts" style="width:235px;">
    <?php $mykey_values = get_post_custom_values('link_zonein');
      foreach ( $mykey_values as $key => $value ) {
        echo "<a onClick=javascript:window.open('/streams/zn.php?id=$value&POST_TITLE','zn$key','fullscreen=yes,scrollbars=1,toolbar=0,resizable=1') href=javascript:;>Link $key</a> ";
      } ?></td></tr></table>
    <?php }else{ ?><?php } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying title’ is closed to new replies.