Support » Plugins and Hacks » wrap a php file

  • Resolved x_maras

    (@x_maras)


    Hi,

    Is it possible to include a php file in a page of my word press?

    I use the iframe to do this, but I would like to include the file instead.

    And also does anyone know if wordpress has a function that shows your place.
    For example, I want to detect if I am in a specific page to show or not the sidebar and the login form.

    (I found the php file that shows the specific page but this is used in another page too, in which I d like to have the sidebar)

    Thank you in advance for your answers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Forum Moderator

    Is it possible to include a php file in a page of my word press?

    You’ll either need a plugin such as runPHP or you’ll need to create a custom page template and include the file in the template.

    And also does anyone know if wordpress has a function that shows your place.

    http://codex.wordpress.org/Conditional_Tags

    Thanks, the conditional tags where really helpful.

    But with the include I made a page template I included it there but
    doesn’t includes the css file of the page. Do you know how that would be possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wrap a php file’ is closed to new replies.