This question may be related to a resolved thread.
Hello, I’m trying to do this:
Main
-sub main
About
Location
Product
-product 1
-product 2
-product 3
-product 3a
-product 3b
-product 3c
I’m able create the Parent and Child but I cannot get the children from the Child Cat. For instance, if I create an entry and set it to be in the category of Product > -product 3, it creates an entry inside -product 3 > -product 3d
When I click that entry, I would like to get the category parent of that -product 3d entry.
I’m able to get it with js but it gives me the whole list of categories
{exp:channel:entries channel="products" url_title="{segment_3}" limit="1" orderby="date" sort="desc" dynamic="on" paginate="bottom" }
{exp:channel:categories parent_only="yes" category_group="8" limit="1"}
[removed]
var oldURL = document.referrer;
[removed](oldURL);
}
[removed]
{/exp:channel:categories}
<h1>{title}</h1>
<div class="clear"></div>
{if product_thumbnail == ""}
{if:else}
{product_thumbnail}
{/if}
<!-- {product_thumbnail} -->
{product_content_<?php echo $_SESSION['lang']; ?>}
{/exp:channel:entries}Please let me know if this can be done without using any plugins.