[wp-trac] [WordPress Trac] #11066: Can't integrate Wordpress 2.8.5 with CodeIgniter
WordPress Trac
wp-trac at lists.automattic.com
Thu Nov 5 22:00:55 UTC 2009
#11066: Can't integrate Wordpress 2.8.5 with CodeIgniter
--------------------------+-------------------------------------------------
Reporter: gthorne | Owner: westi
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: Unassigned
Component: General | Version: 2.8.5
Severity: normal | Keywords: reporter-feedback
--------------------------+-------------------------------------------------
Changes (by westi):
* keywords: embed integrate wordpress => reporter-feedback
Comment:
Ok I have had a look at this and cannot reproduce using a simple test
script here.
Could you provide an example simple script which doesn't work for you?
Here is what I tried:
{{{
<?php
require('/Applications/MAMP/htdocs/wp-2.8.4/wp-blog-header.php');
$posts = get_posts('numberposts=10&order=ASC&orderby=post_title');
foreach ($posts as $post) : the_post(); ?>
<?php the_date(); echo "<br />"; ?>
<?php the_title(); ?>
<?php the_excerpt(); ?>
<?php
endforeach;
?>
}}}
The implication from the error message is that the $wpdb global is not an
instance of the WPDB class.
Maybe some other code is setting this before WordPress tries?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11066#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list