Hi,

I've researched online (still researching) but would like to some help from the 
Zend Framework community please :)

We've built an e-commerce website with Zend Framework (with Postgresql), and 
the client has a separate /blog/ directory holding Wordpress (and a separate 
Mysql database). The client now wants us to load some of the WP feeds into the 
main website, for example the top 3 feeds under their "Latest news" page on the 
main ZF site.

1) This is quite easy with Wordpress, following the below article.
http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website

However, researching online and trying it for myself, it seems like the best 
(or only) to include the core WP file (wp-blog-header.php) is by including it 
in bootstrap.php or index.php (i.e. before the ZF application runs).
e.g. http://www.squidgle.com/post/7

I'm just wondering, is this what everyone is doing? It seems unnecessary as I 
only need to include the wp-blog-header.php file on certain pages, so this 
could slow our site down unnecessarily when not needed.
I have a special Wordpress model mapper to fetch the data using WP functions, 
but I can't actually include the header file in the model because it is within 
a function (errors are thrown if I do this).

2) Even if the above is the only solution, has anyone done this for 
"Multisites" ? Our site has several languages and we need Wordpress to also be 
available in those languages, so the best solution seems like to use 
http://codex.wordpress.org/Create_A_Network - a Network of sites such as 
ourdomain.com/blog/ - for the UK version - and ourdomain.com/blog/de/ - for the 
German version, etc.


However, the above Wordpress link 
(http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website) says 
"These directions will not work on a MultiSite Network.", but offers no 
solution to actually make it work. So it looks like I'm stuck. I've can see 
that people have been asking about this online but I'm just wondering if anyone 
here has done this, specifically to get the English Wordpress posts for the 
English main ZF site, and the German WP posts for the German ZF site, etc. Any 
help would be appreciated. I'll also try the WP forums but would love some 
feedback here..

Many thanks,
Rishi

Reply via email to