How to disable article2pdf on one post/page? (2 posts)

  1. andresf91
    Posted 6 years ago #

    I'm using article2pdf (latest version on WP 2.7.1 in Spanish) and it works fine by now.
    But I want to hide the link on certain pages, like "Forums" (which includes Simple-Press Forum) or "Contact" (cForms plugin).
    I'd like to know how that could be done.
    I should add that the only page in which article2pdf fails is in the Forums, but I suppose this is because it's not actually a page, but the Simple-Press Forums plugin.
    So... any help would be appreciated.

  2. raufaser
    Posted 6 years ago #

    You had to embed that with PHP code into your theme.


    if( $post -> ID != 11 )
     echo '<a href="?article2pdf=1">Get PDF</a>";

    This is an example! Not working code... (11 = your post/page ID where the link NOT should be printed...)

Topic Closed

This topic has been closed to new replies.

About this Topic