incomehero
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How Does “Future Publishing” WorksAwesome! Thanks for your answers.
Forum: Themes and Templates
In reply to: No SEARCHFORM.php in DEFAULT theme!!!Hah, it seems to be a popular question, to which nobody posted the answer yet. I am looking for the same thing.
Forum: Themes and Templates
In reply to: Search Template Tag / StrictSame here…
Forum: Fixing WordPress
In reply to: Highlight Current Category in Navbar on Single PageLike I understand you have to manually enter:
<li <?php if(in_category(5) || is_category(5)){echo 'class="current-cat"';}?>>for every category that you have, is that right?
But is there a way to do this automatically?
I mean, is there a way to edit ‘category-template.php’ file and do something with wp_list_categories function, that it would automatically generate list with the effect mentioned above?
Forum: Fixing WordPress
In reply to: query_posts and order by dateStrangely that doesn’t work.
Now I have:
`<?php query_posts = (‘showposts=1&cat=-1&orderby=date&order=DESC’); ?>I also tried &orderby=ID&order=DESC but still no luck.
It seems that whenever you enter “cat=-1” ordering functions do not work. :/
Forum: Fixing WordPress
In reply to: query_posts and order by dateThe strangest thing is that if I rewrite that query in a different way, like:
<?php query_posts = ('showposts=1&cat=2,3,4'); ?>Which includes all categories except the one with ID=1, everything is fine… But still, it would suck manually entering all those numbers every time you create a new directory…