Process only certain shortcodes.
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
$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?
- The topic ‘Process only certain shortcodes.’ is closed to new replies.