Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How do you write this?

@kevinjohngallagher

Member
<br />
<?php<br />
//Put this in someplace obvious<br />
// like the config file<br />
global $path_needed_for_ryans_plugin = "/path/to/stuff/"</p>
<p>?><br />
<?php<br />
global $path_needed_for_ryans_plugin;<br />
require_once( $path_needed_for_ryans_plugin .'1.html' );<br />
?><br />

Infact you’re probably better off doing in it with a “define” but I’ve not used Ryan’s plugin and didn’t want to presume.

Long term though, this should be something the plugin handles itself. After all the point of a plugin, especially one that is meant to make it easier to sort out themes without having to edit them, is ot not edit the themes :) It’s still a great first step though.

Skip to toolbar