I have a main website with 2 sub domains.
I want to publish articles on my main website using categories to sort them.
for example, an article using "space" category, and an article using "products" category.
Using wp-query and custom post type, I want to display on my space.example.com page the articles from "space" category, and on my products.example.com the articles from "products" category.
I know it's working using wp-querie with categorie on a simple website without sub domains :
$query = new WP_Query( 'category_name=space' );
$query = new WP_Query( 'category_name=products' );
but is there a way to do it with sub-domains ?
I can't find any solution on the net.
can anybody help me with this ?
thanks a lot