Non-wp db call confuses the Loop
I’m calling this script that retrieves rows from some forums tables from the header in WP, but below — when it’s time to get the WP post — WP gets confused and throws up a
Sorry, but you are looking for something that isn’t here.”
WP tables and phpBB3 tables are in the same db, with different prefixes of course.
I thought it was a variable collision, so I changed all variables in the script from $query to $latestpostsquery, $row to $latestpostsrow, etc. Still not working. Any ideas?
The script works fine in the WP footer.
- The topic ‘Non-wp db call confuses the Loop’ is closed to new replies.