bcreighton
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Keep HTML in RSS feed?You’re right – it does work with content:encoded. I have a bit of an issue using it because I’m pulling in the rss elsewhere using PHP 5’s SimpleXML and the “:” in content:encoded is messing up the syntax.
echo $item->content:encoded;
Hmmm…
Forum: Everything else WordPress
In reply to: SQL Syntax Errorgot it – wasn’t carrying the catid over… ??
Forum: Plugins
In reply to: Archives by Date and Categorynevermind – got it ??
Forum: Plugins
In reply to: Archives by Date and CategoryI’m also getting an SQL error for this:
...the right syntax to use near 'AND post_date != '0000-00-00 00:00:00' AND post_status = 'publish' GROUP BY YEAR' at line 1]...
my get archives() and sql string was updated to yper’s suggestion.
The code on my category archive page looks like:
<?php $catmnthquery=($cat); ?> <?php wp_get_archives('$catmnthquery'); ?>
Any ideas? Thanks!
Forum: Themes and Templates
In reply to: Single.php & Archive.php based on CategoryNo, Inheritor doesn’t help at all. I’m just going to pass the cat id via the url string and do some conditional statements.
Thanks everyone!
Forum: Themes and Templates
In reply to: Single.php & Archive.php based on CategoryYep, already working! ?? I’ll check out the inheritor – thanks!!
Forum: Themes and Templates
In reply to: Single.php & Archive.php based on CategoryThanks, blepoxp – I thought about using one big giant conditional for each of the pages (it’s my backup solution).
moshu – I’ll have to take a look at that and digest it a bit, thanks!.
Forum: Themes and Templates
In reply to: Single.php & Archive.php based on CategoryThanks!
I believe this is what I’m looking for, there will be only one category per post.
Now I just need to wrap my brain around it –
this filter would be declared in template-loader.php?
How would I pass the category? Maybe something like this:
} else if ( is_single() && $template = get_single_template($mcat) ) {
if ( is_attachment() )
add_filter('the_content', 'prepend_attachment');
include($template);
exit; }function get_single_template($catid) {
$template = TEMPLATEPATH . '/single-'$catid.php;
return $template;
}Forum: Plugins
In reply to: wp_mail and Subscribe2I was in communication with the plug-in author – however, he knows very little about windows installations and SMTP.
Forum: Plugins
In reply to: wp_mail and Subscribe2Fixed it – the plugin author wrote in an extra set of brackets around the to and from e-mail addresses. (SMTP adds them).