Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Is it possible to add more php to the theme


  #1  
Old Mar 13, 2013, 05:28 PM
jerryc
 
367 posts · Oct 2012
Florida
One of the things that there have been a lot of posts about on this forum is how to use more php code, beyond the limited set. Recently, Juggledad posted a patch to extend which limited php code (beyond what was originally permitted) can be used in a certain area of a template.

Moderator note: Patch 113-06 does not add any more PHP to the theme, it simply allows some of the existing limited PHP to run

Here's my idea. Can that same concept be applied to extend the permitted functions further, even beyond the limited set of allowed php?

Maybe the cleanest way to do it would be to put all the custom functions in a separate file and include them with an include statement such as:

PHP Code:
include "custom-functions.txt"
What I like about this approach is that I'm not big on editing theme or WP files. (By using plugins, I haven't had to do that yet.) However, if all I had to do was insert one line of code to include all my custom functions, and I could then eliminate one or more plugins, I'd probably do it.

Maybe as a user group we can jointly figure out how to best do something like this. Any ideas?

Last edited by juggledad; Mar 14, 2013 at 02:06 PM. Reason: typo

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing a .php theme file after the upgrade would break the theme?? justLearning Atahualpa 3 Wordpress theme 1 Oct 18, 2011 02:38 PM
Upgrade theme when non-theme files are in existing theme folder ewlong New Versions, & Updating 7 Sep 27, 2011 12:53 AM


All times are GMT -6. The time now is 06:10 PM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.