• So this is what I want to do:

    I have two sites set up using Multi-Site. Each site has a separate theme. The one theme has a page called venues. This venues page is pulling a custom post type called ‘venues’. Everything works fine. Now what I want to do with the other site is pull the same information from this ‘venues’ custom post types page from the other site. So I figured I could take the page template ‘venues’ and copy the loop which pulls the custom post type and make a new file ‘venues.php’ and run an includes in the template. I am getting an error:

    ‘Fatal error: Call to undefined function query_posts() in…’

    Thats the first problem. Why cant I run a ‘php include’ with the loop? the second is how do I pull the loop from the other site. Do I run a ‘php include’ with a direct path from the other theme? Will this work? Do I need to use something like simple pie? If this is too confusing please let me know, I tried to explaing the best I could. Thanks for the help!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Doesn’t work that way. Remember, MultiSite makes separate database tables for each site, so site 1 has wp_posts and site 2 has wp_2_posts and so on and so forth. Ergo, you have to ‘switch blogs’ to pull in that data (or make a direct SQL call to the table you want).

    Thread Starter savantstyles

    (@savantstyles)

    Gotcha. Thanks man! I really appreciate the fast response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multi Site Custom Post Types two sites one backend’ is closed to new replies.