I’ve been trying to omit one category from my blog page, and the code doesn’t seem to be working. Please note, I am not an experienced builder, so my knowledge is limited.
What I did (following many articles on the web), is go into the editor and edit the loop.php. I added this:
<?php if (is_blog-2_page() && !is_paged() ) $posts = query_posts($query_string . '&cat=-164'); ?>
Just above the endwhile.
BTW, I LOVE how easy you have made to edit everything in this theme! Great job :-)
Hi Margaux
Glad to hear things have been working out so far. Before going the child theme route, try this. On your blog page set the template to Default, not Blog. The page template drop down is in the right column. Next click over to our Page Builder tab, insert the Post Loop widget and use the last field of that widget to insert an argument:
Where x is the category ID you’d like to omit. Let us know how that goes.
Hi Andrew,
I just tried what you said, and it’s still not working. At the bar at the top, when I’m on the category I want, it says
edit-tags.php?action=edit&taxonomy=category&tag_ID=164&post_type=post
So, I was assuming that I should put
cat=-164
What am I doing wrong?