CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
PHP Problems
Pulling a .php file into wordpress
aaronheine
Permalink to comment
#
April 2011
I have a chunk of code I would like placed in different WP page. But I would like it to be dynamic. I'm thinking I should pull that "chunk" from chunk.php into my WP page. What code do I need to pull a .php file in?
DogsGhost
Permalink to comment
#
April 2011
<?php include_once("chunk.php"); ?>
in the page.php file?
aaronheine
Permalink to comment
#
April 2011
no, in the admin pages
shazdeh
Permalink to comment
#
April 2011
http://codex.wordpress.org/Administration_Menus
Add a Comment
<?php include_once("chunk.php"); ?>in the page.php file?