-
AuthorPosts
-
April 14, 2018 at 4:48 pm #941977
Hello
I have a problem with showing my (sub-)portfolio.
I tried to find the solution in the forum of Enfold, found a lot of info, but it did not solve the problem.
As a photographer I want to show my portfolio. The portfolio should be a drill down:Portfolio level 1 should show (e.g.):
STEDEN (Cities – subitems) (A)
REIZEN (Travel – subitems)
MACRO (no subitems)
ETCWhen I press STEDEN (A) you should see the cities in STEDEN (level 2)
– GRONINGEN (subitems B)
– LEEUWARDEN (subitems)
– WENEN
– ETCWhen I press GRONINGEN (B) you should only see: (level 3)
– – BINNENSTAD (C)
– – CRUISE SHIP
– – UMCG
– – ETC.When I press BINNENSTAD (C), a new page will open with the photos of the BINNENSTAD (C) using the gallery item
I organized my Portfolio Categories as above:PORTFOLIO
A REIZEN (Travel)
A1 Dubai
A2 Noorwegen
A3 EtcB STEDEN (Cities)
B1 Groningen
B1a Binnenstad (Innercity)
B1b Cruise ship
B1c UMCG
B2 Leeuwarden
B2a Haven
B2b BeeldI also installed the code below I found on different Enfold pages in this forum and put it in the function.php of the child theme to hide the sub items
add_filter( ‘parse_tax_query’, ‘enfold_customization_products_remove_children’ );
function enfold_customization_products_remove_children( $q ) {
if ( is_tax(‘product_cat’) ) {
$q -> tax_query -> queries[0][‘include_children’] = 0;
}
}OK. So far so good.
I make a new PORTFOLIO page with a portfolio Grid. In the Portfolio Grid I select: REIZEN, TRAVEL, MACRO (no sub items) etc , save the page and update. What is shown is: almost ALL sub-portfolio items… but NOT TRAVEL (level 1) and STEDEN (level 1). MACRO (also level 1) with no sub portfolio shows up!
It should show:
REIZEN, STEDEN and MACROI hope I made myself clear and that you can help me. It is rather confusing…
Thanx in advance
April 17, 2018 at 4:14 am #942883Hey flipper1960,
Thank you for using Enfold.
You should apply a unique category to the level 1 items and then select it in the main portfolio page. All portfolio categories are currently selected. Apply the level 1 item names as category of the level 2 items. And then do the same for the level 3 items.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.