WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. energykick
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/wp-post-to-pdf/

  2. Lewis Rosenthal
    Member
    Posted 6 months ago #

    Hi...

    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. :-)

    Cheers

    Lewis

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.