• I am using two separate wordpress
    1) wordpress
    2)wordpress_news

    one for blog and another for news …i made a php file which query to wordpress_news just to retrive some data from database. I include this file into table into the index of wordpress …but when i enter wordpress blog it shows me error on sidebar on recent topic.

    error is: wordpress database error:

    can’t show any recent topic

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you have two (2) WP installations: A and B, and while on blog B you try to retrieve data from the database A without specifying the database, the script will look into the B database – and not finding it.

    Wouldn’t it be easier to make a ‘News’ category, exclude it from category list using wp_list_cats(), and display it on the (static) index page using query_posts()?

    Just an opinion, because i’m trying this on my localhost 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘two query in a same php file’ is closed to new replies.