WordPress.org

Ready to get started?Download WordPress

Forums

WordPress PopUp
[resolved] execute PHP in popover (6 posts)

  1. wasanajones
    Member
    Posted 1 year ago #

    is there something to add to functions.php to allow PHP execution in the popover? thanks

    http://wordpress.org/plugins/wordpress-popup/

  2. Mike
    WPMU DEV Support Staff
    Posted 1 year ago #

    Hi @wasanajones

    Not really because PopUp uses the WordPress Visual editor which does not allow PHP. There are a couple of things you could do.

    The best solution would be to create your own shortcodes and use them:
    http://codex.wordpress.org/Shortcode_API

    If you really don't want to do that then you could use a plugin that allows you to use PHP with the Visual Editor, something like these maybe:
    http://wordpress.org/plugins/php-code-for-posts/
    http://wordpress.org/plugins/allow-php-in-posts-and-pages/

    Hope that helps get you on the right track.

  3. wasanajones
    Member
    Posted 1 year ago #

    thanks for response. executing PHP is sure a lot more complicated than it used to be... those two plugins look good (thanks) but there are comments on support forum that they have issues with WP multisite subsites... then looking at other plugins seeing lots of comments about conflicts... I also need PHP in posts, I used to use old PHP Execution plugin but that doesn't work anymore either... will try to figure out the workarounds for multisite and/or write a shortcode (reach exceeding grasp)... and keep searching

  4. Mike
    WPMU DEV Support Staff
    Posted 1 year ago #

    Hi @wasanajones

    It's because it's such a security risk, that's why it's best to make shortcodes if you can :-)

  5. wasanajones
    Member
    Posted 1 year ago #

    thanks -- time to start doing things correctly... goes against my nature

  6. Mike
    WPMU DEV Support Staff
    Posted 1 year ago #

    Haha, it is best to try and do things properly ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic