I've searched already and couldn't find anything tailored to my specific problem, apologies if it has already been asked though.
I have a public Wordpress install and a members only one on a subdomain. The reason for this is that they are both very different sites in terms of functionality so creating members only posts in the main site is not an option. On the subdomain new premium content will be added, but I also need to pull in the posts from the public site.
I've looked into feed urls but because I've implemented quite a specific search customisation on the subdomain I need these posts to be searchable. For example I have an additional posts plugin 'post countries' showing a country associated with the post. Is this still something the feed url would be able to handle, or are there any other alternatives?
EDIT This is the way my current private search is setup, I've just pasted in the relevant code.
$args = array( 'post_type' => 'post', 'show_posts' => '10', 'paged' => $paged ); $the_query = new WP_Query($args); <?php if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post(); ?> // The output
In my own sites private db results are stored in
$the_query and public site results are stored in
$allsearch, which would mean I should add the following and make my loop vanilla.
Does that sound right, it's not pulling in any posts from public site?