Susie Posted February 25, 2011 Report Share Posted February 25, 2011 (edited) This is something that I posted on the phpMyDirectory support forums, but I thought I'd check here, too. My post is as follows: I'm trying to figure out a way to display my client's phpMyDirectory inside the WordPress website I'm developing for them. Here's the demo link: http://tinyurl.com/4kprlkf Here's what I normally do to "include" files or scripts: WordPress functions.php file: add_action('genesis_after_header', 'photo'); function photo() { if(is_page(45)) require(CHILD_DIR.'/photo.php'); } Then I create a photo.php file which contains this: <div id="photo"> <?php if(function_exists('show_media_header')){ show_media_header(); } ?> </div> That particular code is what the plugin author said is needed to put the plugin into the WordPress template. So, what I'm wondering is if there is a <?php ..... ?> line that I could put into a php file and then include it via the functions.php file. I know I can edit the header/footer of the directory itself so it will match, but I really want the navigation to be powered by whatever my clients do within WordPress without having to edit the header/footer files in PMD. Do you know if this is possible? Edited February 25, 2011 by Susie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.