PHP in Wordpress Pages section?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cambaby
    So Fucking Banned
    • Feb 2003
    • 3141

    #1

    PHP in Wordpress Pages section?

    Anyone know a plugin that allows php on Wordpress pages section(not posts). Seems the ones Ive tried are outdated to the new version of WP. pre-Thanks.
  • BSleazy
    Confirmed User
    • Aug 2002
    • 6721

    #2
    Originally posted by cambaby
    Anyone know a plugin that allows php on Wordpress pages section(not posts). Seems the ones Ive tried are outdated to the new version of WP. pre-Thanks.
    I don't see anything that's been updated recently.
    icq 156131086

    Comment

    • FlexxAeon
      Confirmed User
      • May 2003
      • 3765

      #3
      make a new Page template, put all your PHP in there, upload it to the theme folder, then make a 'blank' page that uses said template
      flexx [dot] aeon [at] gmail

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        try this one

        http://wordpress.org/extend/plugins/wp-exec-php/
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • scouser
          marketer.
          • Aug 2006
          • 2280

          #5
          you could also just do
          <?
          if (is_page('page-slug')) {
          // code
          }
          ?>

          in your template

          Comment

          • BSleazy
            Confirmed User
            • Aug 2002
            • 6721

            #6
            Originally posted by fris
            Ya I saw that but people are commenting that it's not even working on 2.91.
            icq 156131086

            Comment

            • fris
              Too lazy to set a custom title
              • Aug 2002
              • 55679

              #7
              Originally posted by deadmoon
              you could also just do
              <?
              if (is_page('page-slug')) {
              // code
              }
              ?>

              in your template
              he wants to run actual php code in the page, in the post editor.
              Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

              Comment

              Working...