WP Post to PDF
Process only certain shortcodes. (2 posts)

  1. energykick
    Posted 2 years ago #

    I have about ten shortcodes in each post pulling information from a database but I only want to process certain ones and print them on the pdf. I found the section where it does stuff with the shortcode

    // Process shortcodes if selected
    if ($this->options['processShortcodes'])
    $post->post_content = do_shortcode($post->post_content);

    but can't figure out how I can just include the shortcodes I want. Can anybody help?

    Thank you.


  2. Lewis Rosenthal
    Posted 1 year ago #


    This very issue has just cropped up on the WP Post to PDF Enhanced support page, in this topic.

    I know that Neerav has stated that he expects to have shortcodes working for his plugin soon. I'll be interested to see how he handles the issue of processing/not processing all shortcodes and then having to whitelist the ones for this plugin, which is exactly what I've bumped into. :-)



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Post to PDF
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.