Getting WP theme to integrate with Photos
-
I have a custom theme and I am trying to integrate Zenphoto into WordPress. There is little support these days for Zenphoto and I’ve searched high and low for more specifics on integrating the two so I’m hoping someone here has some suggestions. I have Zenphoto running on my server in my WordPress directory. I have added the necessary PHP in the index.php file of Zenphoto to call the WordPress theme.
The theme is being called however, it appears that it is not calling the WordPress stylesheet or something with the CSS is being interpreted wrongly with my wp theme because the layout of my WordPress theme is all messed up.
Here is my “normal” layout of my theme on WordPress
https://www.urbanlivingseattle.com/wordpress
Here is the messed up layout now shown in Zenphoto Gallery:
https://www.urbanlivingseattle.com/wordpress/zenphotoAny ideas on how to get the theme to show correctly in the index.php on Zenphoto? Am I missing a function or call?
Here is the index.php code as current in Zenphoto w/ problems.
<?php if (!defined(‘WEBPATH’)) die(); ?>
<?php require($_SERVER[‘DOCUMENT_ROOT’].’/wordpress/wp-blog-header.php’); ?>
<?php
// add the zen css to the wordpress header
function addcss() {
global $_zp_themeroot;
echo ‘<link rel=”stylesheet” href=”‘.$_zp_themeroot.’/zen.css” type=”text/css” />’;
}
add_action(‘wp_head’, ‘addcss’);
?>
<?php get_header(); ?>
<?php db_connect(); //reconnect to zenphoto db ?>//Everything above here is modified code that pulls in WordPress
<div id=”main”><!–<div id=”gallerytitle”>
<h2><?php echo getGalleryTitle(); ?></h2>
</div>–><div id=”albums”>
<?php while (next_album()): ?>
<div class=”album”>
” title=”View album: <?php echo getAlbumTitle();?>”>
<?php printAlbumThumbImage(getAlbumTitle()); ?>
<div class=”albumdesc”>
<small><?php printAlbumDate(“Date Taken: “); ?></small>
<h3>” title=”View album: <?php echo getAlbumTitle();?>”><?php printAlbumTitle(); ?></h3>
<p><?php printAlbumDesc(); ?></p>
</div>
<p style=”clear: both; “></p>
</div>
<?php endwhile; ?>
</div><?php printPageListWithNav(“« prev”, “next »”); ?>
<div id=”enableSorting”>
<?php printSortableGalleryLink(‘Click to sort gallery’, ‘Manual sorting’, NULL, ‘credit’); ?>
</div></div>
<div id=”credit”><?php printAdminLink(‘Admin’, ”, ‘ | ‘); ?>Powered by zenphoto</div>
<?php $wpdb->select(livingseattle); // reconnect wordpress db ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>Any input would be appreciated. I’m just learning PHP and although I know it, I’m rusty with my CSS
- The topic ‘Getting WP theme to integrate with Photos’ is closed to new replies.