Forums

How to display phpMyDirectory inside a WordPress-powered website (1 post)

  1. auxano
    Member
    Posted 1 year ago #

    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 this possible?

Topic Closed

This topic has been closed to new replies.

About this Topic