sujaikumar
Forum Replies Created
-
Forum: Themes and Templates
In reply to: is there “yearly” for wp_get_archives?In case you’re still interested in adding ‘yearly’ as a parameter for wp_get_archives:
Forum: Fixing WordPress
In reply to: Multiple category searches via one query link?The aforementioned tags plugin is by Felix Wong (https://boke.name/c/wordpress-tags). Thanks Felix.
The plugin works as described. So this will do for now. But it would still be great to have this functionality for Categories as well. Any takers?
Some things to keep in mind:
1. It involves changing three files in /wp-admin (for an input field to enter tags)
2. The tags can only be space separated. I made the mistake of typing “mumbai, health” and got errors when I tried to access the URL “https://blog.site/tags/mumbai” because the “,” got stored as part of the tag
3. You have to uninstall the “Post tags” plugin first because there is a conflict (both use ‘tags’ as part of the URL to access tagged info)
Forum: Fixing WordPress
In reply to: Multiple category searches via one query link?One of the helpful folks on IRC suggested I try https://dev.wp-plugins.org/wiki/Tags
“https://your.blog.site/index.php?tags=tag1+tag2+tag3
The URL means you access posts which have tag1 and tag2 and tag3. “
Sounds like just what I need. Only catch is that the tags assigned to each post are totally different from the categories, so none of the wonderful category plugins will probably work…Forum: Fixing WordPress
In reply to: Multiple category searches via one query link?Wondering if Bradley/likoma’s request is possible, or if someone knows enough PHP to hack together an “AND” search like what he is talking about.
I looked inside classes.php (WP 1.5.1.2/wp-includes) and found on line 388:
$andor = ‘OR’;
I tried changing this to ‘AND’ to see if that would get me an “AND” search rather than an “OR” search but now it doesn’t find anything. I think I see why this doesn’t work, but am at a loss for how to get it to search for posts that belong to category x AND category Y.Any help would be greatly appreciated (of course). Thanks in advance.
– Sujai