• Resolved Buca

    (@sharfeddin)


    Right now this is the code for my post title.

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>

    If I wanted to have my post link else-where using a custom field, like ‘title_link’ what should me code look like?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try:

    <a href="<?php echo get_post_meta($post->ID, 'title_link') ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>

    Thread Starter Buca

    (@sharfeddin)

    Thanks Esmi.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using custom fields’ is closed to new replies.