• Resolved caemusic

    (@caemusic)


    It is possible to use php in posts?

    To be specific, I’m trying to display content conditionally based on whether the user is logged in (logged in users see supplementary material, unlike protection that hides the whole post). If there is a better way of doing this than including php in posts, please enlighten me!

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • There might be a plugin that does what you want using shortcode [hide-this] something like this [/hide-this]

    But I don’t know the name of that plugin, if it exists.

    If you want to run PHP inside a Post, I think you need to install a plugin like Run PHP,
    http://wordpress.org/extend/plugins/runphp/

    Thread Starter caemusic

    (@caemusic)

    I figured it out, the checkbox was in a different place on the option panel. Contrary to the Install instructions, the admin does not have this enabled by default in 2.7.

    Thread Starter caemusic

    (@caemusic)

    Sorry posted that in the wrong place. runphp worked. Great success!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using php in posts?’ is closed to new replies.