Well, thanks for hints but finally, I had to abandon the idea of subdomain due to lack of working solution for this. I made separate categories for questions and used some hooks to display&operate on them properly. Thanks to the Custom Permalinks plugin, I now have domain.com
(main blog) and domain.com/forum/
(Q&A), and the latter seems to be different site – with different headers, sidebars, logic, etc. from user’s point of view (it’s all on one instance, of course).
Related Posts:
- Create subdomains for tags and categories
- getting content from main domain to sub-domain using category and WP_Query
- the category city made as a subdomain
- Category as subdomain
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- Gutenberg editor add a custom category as wrapper for custom blocks
- Different template for subcategories
- Hide a certain category name without removing it?
- strip last comma from get_the_category
- WordPress: category page not for post’s
- Automatically assign posts by author to a specific category
- How to show empty category in admin menus search
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- has_category() for parent category
- How to insert category and subcategory using ‘wp_insert_post’ function?
- Show posts of category in a page
- How to create taxonomy values for pages and list them in wp-admin
- Get ID of current taxonomy in register_rest_field
- display woocommerce all category title on home page
- One WP install, I need to map a custom domain name to each category
- Custom page for WooCommerce’s /product-category/
- get_the_category_list() does not give me all my categories
- How to use wp_category_checklist()?
- Get the name an the description of a link category
- How to disable category without deleting?
- Display child categories in WooCommerce
- WooCommerce duplicate sub categories and product slugs
- How to run select query of post with category and tags for API?
- Limit number of terms that a custom taxonomy can save per custom post type
- How to show only one category in breadcrumb navigation
- Populate dropdown based on selection of parent category
- query cat orderby and order not working
- WooCommerce – How to show specific category first-rest of products-specific category last
- Multiple URL’s based on category for one post
- WordPress category check
- How can I improve this taxonomy treating approach?
- Exclude current post from loop
- Exclude categories from wp_list_categories by category slug
- Can’t delete a category in WordPress
- Dropdown Categories used in form shows no results when all is selected
- WordPress Categories in data-groups
- Nicer URL for viewing category of posts?
- Get Categories Where Taxonomy Equals ‘n’
- Odd results in get_the_terms vs wp_get_post_terms
- How to access deleted term inside delete_product_cat action
- Remove Archive | from Categories
- Showing Categories for Page Edit – without plugin
- Difference between wp_list_categories and get_categories
- Show different menu on each woocommerce category page
- Using categories with pages
- Show next post in same category but start from the latest
- Have posts that belong to multiple categories, exclude some categories from homepage
- Only first category!
- How could I write a get_categories_by_year() function?
- How to add icon over specific thumb
- add_settings_field (exclude categories->reading) wp_category_checklist
- Retrieve post tags from from main wp_query
- Listing Post Categories on Home Page
- Get posts in a subcategory of a chosen parent
- Echo Category Nicename
- How to add meta description, keywords, custom title to a category template
- User level categories
- Exclude category from drop down list form
- How to set the same base url for two different taxonomies?
- Hide category name but show posts
- Programmatically Create Category and sub Category and sub sub Category
- Parent Category and Subcategory default text generated with category
- Post List by category and under custom taxonomy
- How to create a table with counts of category combinations?
- How to get the_category(‘, ‘) with link “title” attribute
- product_cat image url from database
- How to get the term id inside the start lvl method of category walker?
- Multiple if statements with else for get_the_category [closed]
- Balance Tags to the_content Words Length
- How to create template for children category?
- Most efficient way to display current post subcategories?
- Using a template page parent breaks page
- How to Query the Top 5 Posts of a specific category?
- Setting category for post as default
- How to add a post with new Taxonomy without assigning to default category?
- Query post only from categories that have subcategories
- How to get the link of all categories
- foreach,having wp_query inside, breaks after showing one result
- Display a category name automatically using code in the functions.php file
- Removing categories, Comments etc from posts?
- 2 loops in archive.php (one for each category)
- How to load jquery tag-it plugin into admin?
- Include Category Description in search result
- not empty categories don’t show in menu [closed]
- Show parent-child relationship for categories in the wordpress admin
- How to assign different categories to pages in wordpress?
- All post of child category not in top category
- How to add a tag above a category post that displays the category name in WordPress
- Woocommerce – Display product category of product in Orders page
- How to show video from wp option value?
- Changing Woocommerce categories programatically
- Add an Exclusive or featured tag line to article titles
- How to list out post category name and description in page
- How to link ACF relationship field to the new Query block in Full Site Editing
- Order Categories by Character Count