Older / Newer links and excluding category
I have the following code inserted Above The Loop in the ATO to exclude category #3 from appearing on the main pages of the web site (or search for 'em, etc.).
PHP Code:
After reading another posts herein I tried this code instead: PHP Code:
Figured I either needed to:
Just know I ain't got it right. Please share any insights you have that'll bring my coding prowess up to speed with my goal so I can resume my spot at the clever table. Thanks. |
you need to test to see if you are paged and pass that to the query_post
|
Got it! Thanks for the direction. Here's what I used and it seems to be working perfectly.
PHP Code:
|
If I'm understanding Wordpress and Atahualpa correctly, I'm having a similar problem. I have a category that I want only accessible if a user selects that tab from the menu. I don't want it to appear as a prev/next option when someone is reading a post. I inserted the above code on the top of my wp-content/themes/Atahualpa/index.php page: the unwanted category doesn't show up on the home page (good!); however, it does appear in prev/next on blog posts (bad!). Please advise: am I putting the code in the wrong spot? Or am I misreading what is written here and I need a different code? Thanks in advance!
|
All times are GMT -6. The time now is 08:53 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.