• Resolved lindsayanng

    (@lindsayanng)


    I have the newest version of wordpress and i just added the PRINT THIS POST wp-Print pluging from here:
    lesterchan.net

    The plugin seemed perfect, and was created by someone who seems to really know his stuff.. So i added it, activated it, and then went to the settings to make sure that everything was right.. but its not. My posts do NOT show the PRINT THIS PAGE icon

    see here
    My WebSite

    I dont really even know where to begin to even give you information.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Yes, but look at the Usage tab at https://lesterchan.net/wordpress/readme/wp-print.html as you need to put something in your theme’s index.php

    Thread Starter lindsayanng

    (@lindsayanng)

    OMG dont i feel like a DOAF.. I really THOUGHT that i was supposed to put something withing that page, but i didnt see any installation instructions.. I didnt even open the USAGE tab.

    Sorry for being such a dork, and thanks for your time!

    Thread Starter lindsayanng

    (@lindsayanng)

    OK.. this is odd.. maybe i am stupid.. I added the code EXACTLY where they told me to, but the PRINT LINK is still not there, however when i go into the post and add [print_link] it shows.. now, i CAN put that into every post i type, but i would be MUCH happier if i didnt have to.

    here is the area where i am placing the code:

    <div id="content">
    
    	<?php if(!is_home()) : ?>
    	<div class="breadcrumb">
    	<?php echo indomagz_breadcrumb(); ?>
    	</div>
    	<?php endif; ?>
    
    	<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); $loopcounter++; ?>
    
    			<div <?php if(function_exists('post_class')) { post_class(); } ?> id="post-<?php the_ID(); ?>">
    			<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to','indomagz'); ?> <?php the_title_attribute(); ?>">
    <?php if(function_exists('wp_print')) { print_link(); } ?>
    			<?php the_title(); ?></a></h2>

    maybe i am still putting it in the wrong place??

    Thread Starter lindsayanng

    (@lindsayanng)

    Ohh.. and that code is the SECOND attempt at moving the code.. first i put the code:
    <?php if(function_exists(‘wp_print’)) { print_link(); } ?>

    directly under this:
    <?php while (have_posts()) : the_post(); $loopcounter++; ?>

    Just like it said to in the link you gave me (although it did not have the loopcounter, but i figured that was just a template thing..

    I just moved it lower to see if it would show somewhere else.

    Using the WordPress Default theme, in the wp-content/themes/default/index.php file, I changed this:

    <?php endwhile; ?>

    to this:

    <?php if(function_exists('wp_print')) { print_link(); } ?>
    <?php endwhile; ?>

    and it showed the Print This Post link under every post on my main page.

    Thread Starter lindsayanng

    (@lindsayanng)

    I figured it out actually.. When i moved the code to the right place within my theme it worked.. It was definitely a little “odd” simply because my theme changed the code enough so that the loop (i guess) was happening before the print resulting in the print not being shown.. It is working now though, and I am VERY happy with it.

    Hi Lindsay- I have wp-print plugin installed and the print icon appears on the pages:
    https://suchasmartmom.com/about/

    but not not the blog:
    https://suchasmartmom.com/2009/04/29/getting-into-a-great-college-take-more-than-smarts-it-takes-hard-work/

    I’ve followed the instructions by the author to the t, but still no luck getting anything to print. I’ve also placed the code suggested by MichaelH above.

    Can you tell me how you got it to work with your theme?

    Thanks in advance!
    -John

    John–did you ever get this sorted out? I can’t get the thing to work at all. Where in the Index.php are you supposed to put the new code?

    Lily

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WP-Print plugin is not working on my site’ is closed to new replies.