WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how to use another .php file (3 posts)

  1. ghp123
    Member
    Posted 1 year ago #

    I don't know much about php but by batteling through some stuff i get things working.

    But now i would like to put some code from my theme in a seperate file to make it easier to use and adjust.

    How can i add the use of a .php file to my theme and how can i access it from my theme?

  2. keesiemeijer
    moderator
    Posted 1 year ago #

    try it with the get_template_part function:
    http://codex.wordpress.org/Function_Reference/get_template_part

  3. ghp123
    Member
    Posted 1 year ago #

    Thanks so much.

    That is what i needed :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.