Jump to content

Recommended Posts

Posted (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 by Susie

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...