Forums

[resolved] WP-Print plugin is not working on my site (9 posts)

  1. lindsayanng
    Member
    Posted 9 months ago #

    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.

  2. MichaelH
    moderator
    Posted 9 months ago #

    Yes, but look at the Usage tab at http://lesterchan.net/wordpress/readme/wp-print.html as you need to put something in your theme's index.php

  3. lindsayanng
    Member
    Posted 9 months ago #

    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!

  4. lindsayanng
    Member
    Posted 9 months ago #

    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??

  5. lindsayanng
    Member
    Posted 9 months ago #

    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.

  6. MichaelH
    moderator
    Posted 9 months ago #

    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.

  7. lindsayanng
    Member
    Posted 9 months ago #

    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.

  8. johnpham
    Member
    Posted 6 months ago #

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

    but not not the blog:
    http://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

  9. lilycarver
    Member
    Posted 6 months ago #

    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

Reply

You must log in to post.

About this Topic

Tags