• Hello and thanks for reading this. I have two blogs installed using the same database, one with $table_prefix = ‘wp1_’ and the other with $table_prefix = ‘wp2_’. What I want to do is displaying posts from the second blog (wp2) on the main page of the first blog (wp1), but when I use query_posts it always takes posts from the current database (wp1). How can I use query_posts to get posts from other table in database? 10x.

Viewing 1 replies (of 1 total)
  • Thread Starter mamulea

    (@mamulea)

    Ok, I’ll put it some other way. How can I modify The Loop so that it reads posts from other table in the database than wp_posts?

Viewing 1 replies (of 1 total)

The topic ‘query_posts with different database’ is closed to new replies.