Best place for "Front End" PHP
Sorry if this isn’t the correct forum….please feel free to recategorise!!
Before I get stick into configuring WP I have a few question about where to put some PHP code.
I’ve created a custom plugin which carries out some functions. “Front End” PHP code (including some HTML) has been inserted directly into each page via the WP dashboard with the use of a plugin Exec-PHP.
Using this method of inserting the PHP means that only the visual editor can be used to add content to the page.
I’ve copied the “full width” template to create a new template and copied the PHP code. The WP page then uses template, each page will require its own template.
Is this the best method to add Front End PHP code into a page, or is there a more flexible method?
Thank for your help.
- The topic ‘Best place for "Front End" PHP’ is closed to new replies.