Support » Fixing WordPress » Shortcode to include an external file

  • Resolved pshero

    (@pshero)


    Hey Gang, I’m hoping one of the WP Guru’s out there can give me a little hand. I’ve got a php file I’d like to include when a shortcode is called in a page/post. This php file is basically an FAQ that I’d like to be able to call at will inside a page/post. I’ve tried this: http://www.amberpanther.com/knowledge-base/using-the-wordpress-shortcode-api-to-include-an-external-file-in-the-post-content/ but it didn’t work for me, can anyone make a suggestion as to how to do this?

    Basically I want to say [faq] and have it include the faq.php (or faq.txt or html if that’s easier. I won’t be using php functionality at all).

    I’m not the strongest coder, so a full shortcode function would be GREATLY appreciated.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode to include an external file’ is closed to new replies.