• Hello all,

    im looking for some plugin that when i writeing new post, i have some field to enter link, and after publishing when i click on title, it move me on that link.

    or

    Mybe better combination for me, first click on title open full post, and title in that post go to external link.

    ty for help

    Azer

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter azerr

    (@azerr)

    I found plugin for 1st option, mybe someone know how to get this

    Mybe better combination for me, first click on title open full post, and title in that post go to external link.

    you could try ans use a custom field, to enter your external link;
    then use this custom field as link url in the title of the post in single.php.

    example:
    in index.php (as normal):

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

    in single.php (link to external):

    <h2><a href="<?php echo get_post_meta($post->ID,'external_link',true); ?>"><?php the_title(); ?></a></h2>

    the custom field key in this example is ‘external_link’ and needs to contain the absolute link url , including ‘http;//’

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘External link in post title ?’ is closed to new replies.