• Resolved mkj2

    (@mkj2)


    First of all: Thanks for the great plugin. It does a magnificent job! I would like to use the LINK option. This would make including and excluding categories very easy. Unfortunately, there is a problem that I can’t solve. I have short articles and paginated articles on my site. With articles the code <?php pdf24Plugin_link(); ?> works just fine in the theme template. If, however, the article is paginated and shown as a single-view (e.g. without pagination) the plugin converts only a part of the article. The ARTICLE option works perfectly for both the paginated single page and the single-view. For the single view I use this function:

    <?php global $wp_query;
    $no_pagination = false;
    if ( isset( $wp_query->query_vars['all'] ) ) {
    $no_pagination = $wp_query->query_vars['all'];
    }
    if( $no_pagination ) {
    echo apply_filters( 'the_content', $post->post_content );
    $page=$numpages+1;
    } else {
    the_content();
    }
    ?>

    No matter where I put the snippet for the LINK option it never works. I have a quick and dirty workaround setting the download link to display:none via a custom field. However, the link is not removed from the source code which is not quite a perfect solution. Anybody any ideas on how to include or exclude categories using the ARTICLE option?
    Thanks in advance!

    https://www.ads-software.com/extend/plugins/pdf24-post-to-pdf/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author pdf24

    (@pdf24)

    Hmm sound like the the_content method returns not the whole article. I don’t know why.. Can you tell me what I can do to reproduce the problem?

    Thread Starter mkj2

    (@mkj2)

    I could post the complete code here. For test purposes you could create a paginated article. This will take 10 minutes or so. Not a big deal. Your help would be very much appreciated.

    Plugin Author pdf24

    (@pdf24)

    I will test that, hope I can reproduce that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: PDF24 Article To PDF] Include and exclude categories’ is closed to new replies.