Forum Replies Created
-
AuthorPosts
-
May 5, 2020 at 7:00 am in reply to: How to hide child categories from showing in parent category in "blog posts" #1209815
Please please help me here, I am getting frustrated and need your support. We have a zoom meeting tomorrow with our community to talk about launching this and they won’t understand the issue. We gave you login info, can you please look at the site and see how we can just display 1-deep category or select the categories we want to show? Or do we need to re-design the entire website or use another theme?
May 5, 2020 at 6:51 am in reply to: How to hide child categories from showing in parent category in "blog posts" #12098085 days and still waiting to hear about if this is going to work folks… Please help us? We were supposed to launch this page tomorrow and the only thing holding us back is this seemingly simple issue. We really need to be able to select each category and not have the children all show up unless we select them individually in the masonry grid.
April 29, 2020 at 7:20 pm in reply to: How to hide child categories from showing in parent category in "blog posts" #1208281Is there some sort of option to select to activate this part that it is inside?
if(isset($avia_config[‘use_child_theme_functions_only’])) return;
?
Getting close I can feel it!
April 29, 2020 at 7:14 pm in reply to: How to hide child categories from showing in parent category in "blog posts" #1208276So I tried using that code and got the error above. I modified it and used this code, but it still has the same blog categories showing up on the page: (The name of the page is ‘landing-page’ so I am assuming to use that). I put it under line 17 as you sent in the photo
// exclude categories
add_filter( ‘avia_blog_post_query’, ‘avia_blog_post_query_mod’, 10, 2 );
function avia_blog_post_query_mod($query, $params) {if( is_page(‘landing-page’) ) {
// exclude an array of categories on the “fish” page
$query[‘tax_query’][] =
[
‘taxonomy’ => ‘category’,
‘field’ => ‘name’,
‘terms’ => array(‘membership’, ‘member-deals’, ‘member-directory’),
‘operator’ => ‘NOT IN’,
];
}return $query;
}April 29, 2020 at 7:09 pm in reply to: How to hide child categories from showing in parent category in "blog posts" #1208268Thank you!
Having a bit of issues where it gives this notice when I paste that code into the fields you mentioned:
Your PHP code changes were rolled back due to an error on line 26 of file wp-content/themes/enfold/functions.php. Please fix and try saving again.
syntax error, unexpected ‘=’, expecting ‘]’
April 29, 2020 at 6:45 am in reply to: How to hide child categories from showing in parent category in "blog posts" #1208073Hey there, still waiting and wondering if there is any support for this? We are trying to launch a page to help our community in the face of COVID-19 and would love your support.
April 24, 2020 at 10:32 pm in reply to: How to hide child categories from showing in parent category in "blog posts" #1206983Oh, also, I added the code in the bottom of the “Functions.php” file. I am not sure if I did something wrong but it doesn’t seem to hide them
April 24, 2020 at 10:30 pm in reply to: How to hide child categories from showing in parent category in "blog posts" #1206982Hey there!
So I used the code in that post and changed it to work for our site, I think, but it isn’t working.
Can you please check? Here is the code I used to try and hide “membership” and “membership-deals” from the homepage
`// exclude categories
add_filter( ‘avia_blog_post_query’, ‘avia_blog_post_query_mod’, 10, 2 );
function avia_blog_post_query_mod($query, $params) {
if( is_page(‘landing-page’) ) {
// exclude category when the current page is “landing-page”
$query[‘tax_query’][] =
[
‘taxonomy’ => ‘category’,
‘field’ => ‘name’,
‘terms’ => ‘membership’,
‘operator’ => ‘NOT IN’,
];
}if( is_page(‘landing-page’) ) {
// exclude an array of categories on the “fish” page
$query[‘tax_query’][] =
[
‘taxonomy’ => ‘category’,
‘field’ => ‘name’,
‘terms’ => array(‘membership’, ‘member-deals’, ‘member-directory’),
‘operator’ => ‘NOT IN’,
];
}return $query;
}
‘April 24, 2020 at 8:28 pm in reply to: How to hide child categories from showing in parent category in "blog posts" #1206948Hey there thank you, is there any custom coding we need outside of a system like this one?
Could you please paste code that would work here for our homepage and then I can adapt for other pages as needed? I am having a bit of a hard time figuring out how to make it work and I bought support again just for this one question.
April 23, 2020 at 9:57 pm in reply to: How to hide child categories from showing in parent category in "blog posts" #1206693Great thanks! You will see on our website that at the bottom of the main page, we are working on this grid system. It has 8 posts that should be there, and any others that are in the child categories shouldn’t be (such as Member Deals or Membership Directory, which should only show up on the grid once people click).
Also, if you look at something like 30% Off Bumper to Bumper: It shows up on both the Community Board grid and Membership Grid and Member Deals grid, although it needs to only show up on Member Deals grid and not the parent grids.
I hope this is possible and simple! Seems like a common issue that would be needed for these sorts of things.
Also, ideally, there would be times when we could make it work this way, but we can always just select to show all the child and parent categories in a grid rather than have it automatic.
September 20, 2018 at 9:20 pm in reply to: Problem with viewing site when logged in, very odd design, broken enfold dashboa #1012468Also getting an error when I try to edit my homepage in the page editor:
Failed to load plugin: charmap from url https://wickselectric.ca/wp-includes/js/tinymce/plugins/charmap/plugin.min.js
September 20, 2018 at 8:20 pm in reply to: Problem with viewing site when logged in, very odd design, broken enfold dashboa #1012453Also getting word that the site looks really bad and messed up on some computers!
-
AuthorPosts