Hello,
I tested this, and [related]
should be getting child taxonomies by default.
One idea – for the posts that are in First Child Taxonomy, is it possible to select both parent and child taxonomies? That might make a difference.
I didn’t understand what you said. Can you specify this message?
“One idea – for the posts that are in First Child Taxonomy, is it possible to select both parent and child taxonomies? That might make a difference.”
Oh, I meant in the post edit screen where you select the taxonomy for the post, if it’s possible to select First Taxonomy and First Child Taxonomy.
Maybe it doesn’t make sense to do it that way in your situation. I’ll make more tests to see if it can be improved.
@eliot Akira,
Ok I Understand you. In our situation it is bad idea. I can’t do it anytime for any posts which need to be in “First Child” taxonomy.
Have you any other idea that can help me for this situation?
Hello,
Please try the following with the newest plugin update:
[related taxonomy=cat_vardzakalutyun children=true count=10]
Dear Friends,
I am new to Custom Content Shortcode so am learning how to use it.
I like what I see so far.
I am trying to display all children of a specific parent category in woocommerce. For each of the children in the specific parent category I want to display the child title, image and image-caption.
I thought the following code should work. I don’t understand why it does not.
‘[for each=”product_cat” parents=”true”]
[loop type=”product” taxonomy=product_cat term=brand]
<h2 style=”color: #ffffff; background-color: #0047b2; text-align:center;”> <b>Pumps By: [field title]</b></h2>
[/loop]
[-for each=”child” current=”true”]
<h3 style=”color: #000000; background-color: #99c2ff; text-align:center”> <b> Subcategory: [-each]</b></h3>
<b> [field title] </b>
[field thumbnail]
[field image-caption]
[/-for]
[/for]’
I also tried the ‘related’ as follows, but it didn’t work either.
‘[related taxonomy=product_cat children=”true” term=brand]
<b> [field title] </b>
[field thumbnail]
[field image-caption]
[/related]
‘