Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Wordpress Blog Summary on Zen Cart Homepage via 'Main Page'

Wordpress Blog Summary on Zen Cart Homepage via 'Main Page'

Views: 947

Results 1 to 1 of 1
13 Jan 2011, 12:22 AM
#1
rogg avatar

rogg

New Zenner

Join Date:
Dec 2009
Posts:
1
Plugin Contributions:
0

Wordpress Blog Summary on Zen Cart Homepage via 'Main Page'

On my zen cart homepage, I want to add some code to the 'main page' in the define pages editor in my admin to show a summary of my wordpress blog posts.

I found this article explaining how the wordpress blog works, and how to show a summary on another page.

http://www.corvidworks.com/articles/wordpress-content-on-other-pages

The key to gaining access to the power of WordPress from an outside page lies in the wp-load.php file. The first thing to do is to pull in that WordPress file to my zen cart page. This can be done by adding the code:

<?php // Include WordPress define('WP_USE_THEMES', false); require('./wordpress/wp-load.php'); query_posts('showposts=1'); ?>

Question:
What page do I add this code to, and where can I add it?
I tried to add it to my index.php page in my zen cart store, but it only stopped the website from displaying.

I assume If someone can tell me what php file to add this code to, it will allow me to call the wordpress file and insert the summary of posts to my homepage through my 'main page'

Can anyone help?