PDF24 Article To PDF
[resolved] Include and exclude categories (4 posts)

  1. MKJ2
    Posted 4 years ago #

    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 );
    } else {

    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!


  2. pdf24
    Plugin Author

    Posted 4 years ago #

    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?

  3. MKJ2
    Posted 4 years ago #

    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.

  4. pdf24
    Plugin Author

    Posted 3 years ago #

    I will test that, hope I can reproduce that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PDF24 Article To PDF
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic