Title: [Plugin: article2pdf] Problem between post / &#8220;Sidebar post widget&#8221;
Last modified: August 19, 2016

---

# [Plugin: article2pdf] Problem between post / “Sidebar post widget”

 *  [psychederic](https://wordpress.org/support/users/psychederic/)
 * (@psychederic)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-article2pdf-problem-between-post-sidebar-post-widget/)
 * Hi, first thank you for this great plugin.
 * I have an issue :
    I got always the “same” pdf in every post/Article.
 * In my opinion (and i don’t analyse your code) the problem is that article2pdf
   take the “post” from the post widget on my sidebar.
 * if you want to watch what is going exactly : [http://eminencia.org](http://eminencia.org)
 * Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [raufaser](https://wordpress.org/support/users/raufaser/)
 * (@raufaser)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-article2pdf-problem-between-post-sidebar-post-widget/#post-1048680)
 * If it shows the same pdf anytime I made the experience, that your link for pdf
   generation is not correct. Please check the faq and play with the link that leads
   WP to create the pdf file.
 * If you wan’t to check if it really is a problem with the sidebar widget, deactivate
   the widget and try again – if you get the same pdf as before, it’s a problem 
   with the link, surely.
 * Marc
 *  [nefaria](https://wordpress.org/support/users/nefaria/)
 * (@nefaria)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-article2pdf-problem-between-post-sidebar-post-widget/#post-1048723)
 * Hi
    I’ve the same problem, everything is fine except that the pdf generated is
   always the one of my homepage. I cleared the cache and desactivated it. Tried
   to change the paths
 * For “PDF download redirect method” the path is now […]/wp-content/uploads/
    all
   permissions are given
 * here is the code of my”single.php”
 *     ```
       <div id="content">
       <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
       <div class="post" id="post-<?php the_ID(); ?>">
       <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
       <p class="postmetadata">
            <?php the_time('j F Y') ?> par <?php the_author() ?> | Cat&eacute;gorie: <?php the_category(', ') ?> |
       </p>
       <div class="post_content">
       <?php the_content(); ?>
       <br />
       <a rel="nofollow" href="?article2pdf=1">PDF Version</a>
       <div class="comments-template">
       <?php comments_template(); ?>
       </div>
       </div>
       </div>
       <?php endwhile; ?>
       <?php previous_post_link() ?> <?php next_post_link() ?>
       <?php else : ?>
       	<p>Désolé, aucun article ne correspond à vos critères.</p>
       <?php endif; ?>
       </div>
       </div>
       ```
   
 * Thanks for your help.
    Sorry about my english
 *  [nefaria](https://wordpress.org/support/users/nefaria/)
 * (@nefaria)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-article2pdf-problem-between-post-sidebar-post-widget/#post-1048724)
 * Hi!
    It’s ok, I didn’t understand that the incorrect link was the one in my template.
   I have the default permalink setting so the link in my themplate should be `<
   a href="<?php the_permalink(); ?>&article2pdf=1">PDF Version</a>`
 * Thank you for the plugin, very good now.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: article2pdf] Problem between post / “Sidebar post widget”’ is
closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [nefaria](https://wordpress.org/support/users/nefaria/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-article2pdf-problem-between-post-sidebar-post-widget/#post-1048724)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
