Forums

Where can I find the posts page (4 posts)

  1. Dave
    Member
    Posted 6 years ago #

    I would like to add the "Print This Page" plugin code to the Permalink page. I want to add it to the area where it says " This entry was posted on Saturday, February 25th, 2006 at 2:30 pm and is filed under General. You can follow any responses to this entry..."

    Where can I find this page? It's probably right under my nose in something like wp-content/themes/default/something.php. Thanks again!

  2. spencerp
    Member
    Posted 6 years ago #

    Don't it tell you right in the instructions for that plugin? I could have sworn it did.. :/

    // Open wp-content/themes/<YOUR THEME NAME>/index.php

    Find:
    ------------------------------------------------------------------
    <?php while (have_posts()) : the_post(); ?>
    ------------------------------------------------------------------
    Add Below It:
    ------------------------------------------------------------------
    <?php if(is_page()) : ?>
    <a href="<?php the_permalink(); ?>printpage/">Print This Article</a>
    <?php else : ?>
    <a href="<?php the_permalink(); ?>print/">Print This Article</a>
    <?php endif; ?>

    Not trying to be mean, but I'd suggest reading all the instructions for each plugin you get..that's where this stuff is specified for you..well 98.9999% of the time anyway.. =)

    spencerp

  3. Dave
    Member
    Posted 6 years ago #

    Thanks for your help, but that's EXACTLY the reason for posting this question! I added the code there, and it works perfectly, but I'd also like to have it on the permalink page (the page where individual posts are kept), so that it reads something like "This entry was posted on Sunday, February 26th, 2006 at 10:48 am and is filed under General. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site. Print This Page."

    I'd like the text "Print This Page" to be linked to the print plugin.

  4. Lester Chan
    Member
    Posted 6 years ago #

    in the latest version ui can just use <?php print_link(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.