• 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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Just add the code anywhere inside the Loop

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

    Thread Starter daviddecristoforo

    (@daviddecristoforo)

    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

    Moderator James Huff

    (@macmanx)

    Please dont think I’m an idiot (even tho I am!) but what and where is “the loop”?

    https://codex.www.ads-software.com/The_Loop

    Put it within this…

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

    …and this…

    #
    <?php endforeach; else: ?>

    Thread Starter daviddecristoforo

    (@daviddecristoforo)

    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

    Thread Starter daviddecristoforo

    (@daviddecristoforo)

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

    Thanx again for your invaluable assistance

    DD

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Upgraded to 1.5 but can’t find this code (re mail this post link)’ is closed to new replies.