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.
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).
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
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)
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!
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.
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 ^^).
Vladimir’s WordPress Forum
Exclude Categories
18:56
6 August, 2008
Peter
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
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
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
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
Kind regards from Austria
eliZZZa
17:30
30 April, 2009
E.
Post edited 22:31 – 30 April, 2009 by E.
Building off of eliZZZa's solution, if you add:
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
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
posts 707
Nothing beats user finding the solution to the problem :)
12:47
7 September, 2010
Wachtang
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
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 ^^).