swortis
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Customing code within dynamic sidebar widget“But I’m unsure on how to add the class ‘post’ to the individual
li’s within that widget.”(the tag was stripped out)
Forum: Fixing WordPress
In reply to: single_cat_title adding paragraph tag<?php echo strip_tags(category_description()); ?> worked beatifully.
I use this:
<h2 class=”pagetitle”><?php single_cat_title(); ?>
<span><?php echo strip_tags(category_description()); ?></span></h2>..and then style away in the CSS (use – span {display:block;} – to get the category description onto the next line)
Thanks all!
Forum: Fixing WordPress
In reply to: single_cat_title adding paragraph tagOdd.. The first post went blank..
Anyway, my question was why adding the following into template/archive.php:
<h2 class=”pagetitle”><?php echo category_description(single_cat_title()); ?></h2>
Produces:
<h2 class=”pagetitle”>Category Title<p>Category Description</p></h2>
(in other words, why the paragraph tag?)
Is there any other way of getting Category Descriptions to appear on an Archive?
Forum: Fixing WordPress
In reply to: How are the posts and categories linked in SQL database?Thanks. I was able to batch change the category ID.
The posts are still not ‘published’ however, and I’m a little concerned about messing with the SQL database.
Anyone know if there’s a plugin which would batch-publish posts?
Forum: Themes and Templates
In reply to: Static order of Catagories on front page?(sigh)
Moving to Nucleus.
Forum: Plugins
In reply to: Unresolved: Question about the “Display by Catalog” loopThanks moshu for the suggestion, but, alas, the plugin doesn’t resolve the problems.
(I’m really surprised that folks have not wanted either of these options – either to order categories in a static order on the front page; or to display only the most recent post from each category.)
Forum: Plugins
In reply to: Question about Kaf’s “Display by Catalog” loop(bump)
Forum: Plugins
In reply to: Question about Kaf’s “Display by Catalog” loop(bump)
Forum: Fixing WordPress
In reply to: Displaying The Title Of A Single CategoryThe answer:
<h2 id=”cat<?php the_category_ID(); ?>”><?php the_category(‘separator’); ?></h2>
spits out the following html:
<h2 id=”cat7″>The Category</h2>
You can modify the tag as you like in the CSS