Jump to content
Stef's Coding Community

How to display phpMyDirectory inside a WordPress-powered website


Recommended Posts

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
Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...