WordPress.org

Ready to get started?Download WordPress

Forums

Upgraded to 1.5 but can't find this code (re mail this post link) (7 posts)

  1. DavidDeCristoforo
    Member
    Posted 9 years ago #

    Now that I have upgraded to 1.5 I am trying to add a "mail this post" link. I have the WP-email "plug-in" but I cant seem to find a line of code that needs to be modified. the read-me says to locate in the index.php file:

    <?php while (have_posts()) : the_post(); ?>

    and then:

    Add Below It:

    ">Email This Article

    However, I can't seem to find this code anywhere. I'm using the vesuvius template and i've searched the index.php file till my head hurts.....obviously, I'm missing something!

    I can't believe it's this hard to add such a simple feature as a way for a visitor to send a post to someone...I hope I am missing something!

    DD

  2. Joshua Sigar
    Member
    Posted 9 years ago #

    Just add the code anywhere inside the Loop

    Paste your index.php here: http://pastebin.com

  3. DavidDeCristoforo
    Member
    Posted 9 years ago #

    I pasted the index.php per your request. Please dont think I'm an idiot (even tho I am!) but what and where is "the loop"?

    Thank you for your help

    DD

  4. Please dont think I'm an idiot (even tho I am!) but what and where is "the loop"?

    http://codex.wordpress.org/The_Loop

  5. Joshua Sigar
    Member
    Posted 9 years ago #

    Put it within this...

    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

    ...and this...

    #
    <?php endforeach; else: ?>

  6. DavidDeCristoforo
    Member
    Posted 9 years ago #

    Thank You. That worked perfectly. I owe you one... Now...if you look at the blog you will see that the e-mail this link is directly above the date line for the next post and there is quite a bit of "white space" between the link and the last line of the post to which the e-mail link pertains. Is there any way to have the link "moved up" so that it is closer to the body text and leave more "white space" between the link and the date of the following post?

    Thanx
    DD

  7. DavidDeCristoforo
    Member
    Posted 9 years ago #

    Please ignore the previous question. I figured it out! Me! All by myself!!! There is hope!

    Thanx again for your invaluable assistance

    DD

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.