June 6, 2013 at 12:04 pm #44376
I’m trying to exclude 4 category’s from the balance theme homepage grid.
Any snippets available?
CraigJune 6, 2013 at 12:08 pm #44378
June 6, 2013 at 12:31 pm #44386
Simply Exclude didn’t work.
I’ve tried stopping the category by adding the // exclude posts from this category// ( the code not the words in brackets ) in the homepage loop.
Never had this problem before.
CraigJune 6, 2013 at 12:35 pm #44389June 6, 2013 at 1:02 pm #44396
I see that. I’m trying to use the same grid that the balance theme uses.
This is my home.php code you’ll see the exclude category I tried to use. https://gist.github.com/thewebattic/5723987
I did try add the function you showed above but nothing happened again.
Thanks for the help so far
CraigJune 7, 2013 at 2:34 am #44480
Hey still no joy here.
Also noticed that when I page through from the home page pagination it go’s back to the home page ??
Any more advice would be appreciatedJune 7, 2013 at 3:06 am #44483
This code has been tested on the Balance child theme and works.
Please remove this code from your home.php file
'category__not_in' => -13, // exclude posts from this category
Then paste this code at the end of your child themes functions.php file.
Code not displaying? Grab it from Github.
Please replace the 4 category i.d’s in the code with the i.d’s for the categories you want to exclude posts from displaying in.
This code removes all posts assigned to 4 categories from displaying on your home page if its set to display your latest posts. The code also excludes posts from those 4 categories from displaying in paginated pages linked to the home page.
Example: page 1,2,3 etc.
June 7, 2013 at 7:11 am #44513
I added that code still no luck even tried installing the original functions.php file and home.php and the grid still shows the the category I’m trying to exclude category-13 and reloads the home page for the pagination links.
With that in mind do you think it’s possible I have settings in the Dashboard area that are conflicting with the code??
Link to the homepage http://sdesign.evokemedia.ca/wp2/June 7, 2013 at 8:12 am #44526
Please send me your login details for cPanel and WordPress and i’ll take a look and fix it for you.
I have tested the code on your theme locally and i know it works but would like to help you resolve this quickly.
June 7, 2013 at 8:22 am #44532This reply has been marked as private.June 7, 2013 at 12:52 pm #44603
Hey Brad did you get my details.
I’ll never call you bill again lol !
CraigJune 7, 2013 at 1:20 pm #44619June 10, 2013 at 9:29 am #45040
Hey brad I forwarded on my details yesterday by email.
Let me know if you got them
CraigJune 10, 2013 at 9:31 am #45043June 10, 2013 at 10:04 am #45049
I just resent the details now.
PS I also just received a failure notice for the first mail I sent
his is an automatically generated Delivery Status Notification
THIS IS A WARNING MESSAGE ONLY.
YOU DO NOT NEED TO RESEND YOUR MESSAGE.
Delivery to the following recipient has been delayed:
Message will be retried for 2 more day(s)
Catch you later
You must be logged in to reply to this topic.