Forums

[resolved] PHP code in wordpress posts? (3 posts)

  1. bensheffield
    Member
    Posted 3 years ago #

    Hey guys.

    I've been looking at having dynamic content on a single wordpress post, and I was wondering if it's possible to include php code. I've disabled the WYSIWYG editor and the RTE editor, but my php tags still get stripped out when I post.

    I've spoken to someone else, and he mentions that I can stop my posts being filtered by editing kses.php, but I'm not sure which parts of that file to change.

    Any ideas?

  2. churchthemer
    Member
    Posted 3 years ago #

    By default you cannot execute php code in a wordpress post. Check out the PHP-EXEC plugin here.

    Hope that helps.

  3. bensheffield
    Member
    Posted 3 years ago #

    Excellent, I got it working. Thanks for the help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.