So Iām ending up with 1 recipe in desserts-members-2 (referring to the slug in the image), another in desserts-members-3, and so on. Instead there should be 7 recipes in desserts-members.
How the category listing should look.
It doesnāt do this if I just select a single 'main categoryā, only when I select āmain category > sub categoryā.
When creating a new CPT post, I encountered a bug, and I am curious if you are seeing this behavior. Namely, I would only see the sub categories of one main category:
This seems to be caused by the fact that sub categories have the same names, and when one of them is renamed to something unique, it shows up in the list:
However, I could not reproduce the issue youāve originally reported.
When creating CPT posts under a subcategory, I did not get category duplication:
I see that in your image you have 1 item in SubCat1, 1 item in SubCat2, but only 1 item in MainCat1, is that because you did not select MainCat1 as the primary category when you posted it?
Then, another thing I notice is that your Custom Post Type may not be set up the same as I have checkboxes and not a lookup, so could it be to do with the configuration on the taxonomy? I have hierarchical = true , so the master site looks like this:-
But yes you seem close to replicating the issue because this is what Iām getting in my Category listing.
The problem with it is that the recipe pages are all designed to show different layouts based on whether the user is a member or not. If they are a member they get to see āFreeā MainCat posts and if theyāre a Member, they get to see both āFreeā & āMemberā MainCat posts and my templates are designed to show or hide based on their category.
So Iām posting and nothing appears because all the recipes are assigned a category that doesnāt exist in the query.
I think I can see the difference here now, your categories are coming from the āGeneric Postsā.
However, when creating Custom Posts, you usually want Custom Post Categories as well.
So I have a Custom Post Taxonomy set up also. This is called āRecipe Categoriesā.
I have a video showing you a custom post type without a taxonomy called Test Recipes and then my original one called āRecipesā with its Taxonomy of āRecipe Categoriesā.
Custom taxonomies should work with our extension so we will address that in the next release of our Custom Post Type extension.
However, it will still be necessary to first select a Child site and then their respective categories from the Categories widget below as seen here:
The difference will be that in the new version, custom taxonomies will be visible in that list.
The āRecipe Categoriesā widget visible on your MainWP Dashboard simply shows the custom taxonomies that are present on the Dashboard which does not play a role in how our extension works and will work in the next version.
Thanks Bojan,
Yes, this is correct. The Generic Post Categories will show up if I select a Child Site.
I have done a video showing exactly that. Where the āRecipes Categoriesā custom taxonomy is visible on the āmainWPā management site, but when selecting the Child Site, the only categories that can be selected is the āGeneric postā category, which are not used across any of our Child Sites.