| | #1 |
| HyperActive Warrior War Room Member Join Date: 2010 Location: New Jersey
Posts: 140
Thanks: 14
Thanked 12 Times in 3 Posts
|
Not the dirty kind! I wanna know on wordpress after I've created a page, I want a database table to show in the text area. <?php echo displayGirls(); ?> This is what I'd like on there - but apparently you can't insert php code into the text area? Help? Pretty please? |
| |
| | #2 |
| Flying Waffle War Room Member Join Date: 2011 Location: Vancouver, Canada
Posts: 806
Thanks: 62
Thanked 208 Times in 158 Posts
|
Look for a plugin called execphp, it lets you execute PHP code in posts and pages.
|
| | |
| |
| The Following User Says Thank You to Christian Little For This Useful Post: |
| | #3 | |
| HyperActive Warrior War Room Member Join Date: 2010 Location: New Jersey
Posts: 140
Thanks: 14
Thanked 12 Times in 3 Posts
|
Make sense? | |
| |
| | #4 |
| Flying Waffle War Room Member Join Date: 2011 Location: Vancouver, Canada
Posts: 806
Thanks: 62
Thanked 208 Times in 158 Posts
|
Ahh...what you want is a page template. Basically wordpress lets you create subtemplates that you can set pages to use that are part of your theme but are only called from specific pages. Here's a brief section that explains how to do it: Pages « WordPress Codex But basically you create a new .php file (i.e. page2.php) in your themes directory and copy everythign that's inside of page.php into it. Then at the very top put some comment code in to name the template. Then you go to whatever page you are doing this for, and select the template from the menu on the right when editing the page. |
| | |
| |
| The Following User Says Thank You to Christian Little For This Useful Post: |
| | #5 | |
| HyperActive Warrior War Room Member Join Date: 2010 Location: New Jersey
Posts: 140
Thanks: 14
Thanked 12 Times in 3 Posts
|
| |
| |
|
| Bookmarks |
| Tags |
| insertion |
| |