
cclinton
User
Oct 18, 2007, 11:31 PM
Post #4 of 7
(10532 views)
Shortcut
|
|
Re: [Jake] Wordpress integration
[In reply to]
|
Can't Post
|
|
I just made the attempt and am having trouble. Here's how my folder layout works: Wordpress is in a folder titled Community. Inside that folder is the data, exec, homepages, listings, templates and wordpress folders and files. One of those folders is the WP-content folder. Inside that folder is another titled Themes. Inside that folder is another titled SuperD, the name of my theme for Wordpress. I left the interface templates in the Templates folder but moved the templates for my Realty Manager pages within the Superd folder and retained the correct names such as _publish_listing_index.html, etc. I changed the Publish Templates directory in Realty Manager to ../wp-content/themes/superd/ I then modified the templates to match my wordpress templates but for the correct fields for Realty Manager. Here's the kicker - Realty Manager is causing problems with my wordpress php codes. If i copy the final codes from an existing page and replace them on the template the page renders fine. Otherwise I get an error like this where the php code resides: Fatal error: Call to undefined function: wp_list_categories() in /homepages/1/d88691069/htdocs/sum07/community/homepages/index.php on line 206 Is there a way to force the Realty Manager pages to pull the information or do I have to set up a wordpress template with a php include to load my agents and listings? As an aside, here is an example of some of the header codes from Wordpress: <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php bloginfo('name'); ?><?php wp_title(); ?></title> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please --> <style type="text/css" media="screen"> @import url( <?php bloginfo('stylesheet_url'); ?> ); I don't mind hard coding these but I have codes within the page which pull information that is dependent on updates in Wordpress.
|