WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: article2pdf] Problem between post / "Sidebar post widget" (4 posts)

  1. psychederic
    Member
    Posted 5 years ago #

    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

    Thank you.

  2. raufaser
    Member
    Posted 5 years ago #

    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

  3. Nefaria
    Member
    Posted 4 years ago #

    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

  4. Nefaria
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic