Create a model from the wp_posts table and print what you want OR
better see if http://codex.wordpress.org/XML-RPC_wp you can make a
client for the wordpress API

HTH
Tarique


On Thu, Jun 9, 2011 at 1:52 AM, Paul Wheatley <[email protected]> wrote:
> Hello,
> I am trying to setup a directory on the back of a wordpress site (i cannot
> change this, its a favour for my local school so don't want to change
> anything that is already in place).
> So what i am trying to do is display the titles and other general site
> information in the Cake app but using content from within Wordpress (they
> are familiar with the wordpress admin interface), using the wordpress
> keywords...
> wp_title() etc...
> I have searched Google for most of the evening trying to find a solution and
> have managed to find a post that claims that this code...
> <?php
> // Include WordPress
> define('WP_USE_THEMES', false);
> require('./wordpress/wp-load.php');
> wp_title();
> ?>
> Should do it but I am just getting an error saying that Cake/PHP doesn't
> understand 'wp_title()'.
> Fatal error: Call to undefined function wp_title() in
> /var/www/cake/app/views/layouts/default.ctp on line 113
> I assume it is possible, has anyone done this before? If so, how do i do it?
> Any help would be very much appreciated.
> Paul
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at
> http://groups.google.com/group/cake-php
>



-- 
=============================================================
PHP for E-Biz: http://sanisoft.com
=============================================================

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to