• meg@tenants-rights.org

    (@megtenants-rightsorg)


    Hi everyone,
    I am having trouble getting an extralink to show up in the heading text on the front page. When I do a link to in the text it doesn’t allow you to access the website (it isn’t underlined).

    Here is our website:
    http://www.tenants-rights.org

    In the headline section we would like the text “purchase tickets here” to allow you to click on it and go to that page.

    Please help! Thoughts??

Viewing 4 replies - 1 through 4 (of 4 total)
  • luckdragon

    (@luckdragon)

    you are saying you want it as part of the headline title? or part of the_excerpt?

    Thread Starter meg@tenants-rights.org

    (@megtenants-rightsorg)

    In the excerpt, in the body of the text

    luckdragon

    (@luckdragon)

    just for that post?

    luckdragon

    (@luckdragon)

    actually, there’s another way..

    use the “extra fields” option in wordpress..

    create an extra field (I’ll call it extraCode for this code) and put in the value the extra code/text you want it to display

    then modify your template so instead of showing just the_excerpt(); it shows:

    <?php
      $extraCode = get_post_meta($post->ID, 'extraCode', true);
      if ($extraCode) :
        echo $extraCode;
      endif;
      the_excerpt();
    ?>

    then, anytime you want to do that, you just add the extraCode extra field to your post, and it will get displayed before the excerpt

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Heading text extralink’ is closed to new replies.