WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wrap a php file (3 posts)

  1. x_maras
    Member
    Posted 5 years ago #

    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!

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    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

  3. x_maras
    Member
    Posted 5 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic