Vladimir’s WordPress Forum


 
Current User: Guest
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Exclude Categories

Add a New Topic Reply to Post
UserPost

18:56
6 August, 2008


Peter

Guest

Hi,

thanks for your wonderful plugin.

How can I exclude categories ?

Thanks for your answer in advance.

Best wishes, Peter

20:31
9 August, 2008


Somone

Guest

My query also. When I use code e.g. a youtube id number or [something else] in square brackets, I get "contents " in my archives with the contents hyperlinked. It doesn't look very profressional. I have put all of these types of posts in the one category, so if I can exclude this category from the snazzy archives it would be great. Selecting noarchive this post using my SEo plugin does NOT work. So your code is pretty powerful.  Much appreciated.

9:56
15 August, 2008


Vladimir

Admin

posts 707

“Your code is pretty powerful” :) That's genious.

Ok I will include support for category selection – I dont knw when. Its very time consuming.

I will address also the second problem which appears because the posts are got in raw format directly from wordpress for speed (and some say the speed is not good already).

6:33
11 February, 2009


eliZZZa

Guest

Peter said:

Hi,

thanks for your wonderful plugin.

How can I exclude categories ?

Thanks for your answer in advance.

Best wishes, Peter


Hi Peter,
solved the problem – and don't bite me, as I have only a vague idea of PHP & mySQL, but the fact leads you to creative solutions >;o)) Sure not applicable for any need, but it did it for me…
1) Create a User/Administrator, Username "sn", secure password, remember the ID (8 in my case)
2) Set the "author" of those entries, you want in your Snazzy Archives to "sn"
3) Go to line 289 of snazzy-archives.php and change to
$query = "SELECT * FROM $wpdb->posts WHERE post_status = 'publish' AND post_password = '' AND post_author = '8' AND post_type IN ($types) ORDER BY " . $oby;

Works perfectly until Vladimir has an automated solution Wink

Kind regards from Austria
eliZZZa

17:30
30 April, 2009


E.

Guest

Post edited 22:31 – 30 April, 2009 by E.


Building off of eliZZZa's solution, if you add:

AND comment_status = 'open'

instead of the post_author, you can also filter by whether the comments are open or closed (for closed, put 'closed' instead of 'open'), if that would be a better solution (it was for me)

2:34
7 December, 2009


Kissed Vixen

Guest

Post edited 2:35 – 7 December, 2009 by Kissed Vixen


Hi,

I have been looking for this solution for a while myself. And need it badly right now.
Could someone please help me by showing exactly where I need to change this?

I would only need a version that hids categories when comments are closed.

anyone

I tried editing the code my self and lost all the thumbs on the page hehe

thank you!!

Update…
Actually I got it figured out due to a post in the orginal comments section of the main page!
yay thanks. Still loving this plugin..even more now!

17:39
10 December, 2009


Vladimir

Admin

posts 707

Nothing beats user finding the solution to the problem :)

12:47
7 September, 2010


Wachtang

Guest

Hi there,

I tried the solution by Elizzzza, but I only got an empty template after this… too bad the snazzy archives are not affected by the usual excluding of pages/cats. And I believe it must be one little piece of text. Not even automated, just a phrase that can be edited – but I really don't want pages like "contact" or "imprint" in the archives, it doesn't make sense.

I'd really appreciate a solution :)

Thanks in advance

12:54
7 September, 2010


Wachtang

Guest

Okay, I might wanna work with the comments solution, since I deleted the comment function from my templates anyway – so it doesn't matter whether I allow them or not (they are gone in any case ^^).

Reply to Post

Reply to Topic:
Exclude Categories

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
8 + 4