chadrew
Forum Replies Created
-
So this slowness wasn’t related to the upgrade? I’m scared to update to 3.20 now 🙂
Forum: Plugins
In reply to: Exclude page/post from relate in YarppMake sure “Cross-relate posts and pages” isn’t checked.
Forum: Fixing WordPress
In reply to: Disabling HTML tags in commentsThis is exactly what I was looking for. Just a small note, Firefox seems to still show HTML formatting and hyperlinks in the RSS feed; comments on site are OK, and viewing in IE the comments in RSS feed are OK too. I’m not sure why Firefox is different.
Forum: Fixing WordPress
In reply to: Custom 404 pages not working with IE8Thanks for the help.
For the record, I tried adding:
ErrorDocument 404 /index.php?error=404
to my .htaccess, but it didn’t have any effect on IE’s behaviour.
Forum: Fixing WordPress
In reply to: Custom 404 pages not working with IE8Alright. It seems that Tools > Internet Options > Advanced > Show friendly HTTP error messages (uncheck) did the trick.
I wonder if that’s the default option for IE8 – if yes then it’s a shame.
Still no idea why sometimes WordPress 404 page would “manage” to load on IE8.
Forum: Fixing WordPress
In reply to: Automatic Excerpt is Not WorkingThis took me a while but I think I got it. I borrowed the excerpt function from here:
http://wordpress.org/extend/plugins/hybrid-bugfix/faq/
And modified it to limit only automatic excerpts, since for some reason the 22 word limit limited my “automatic” excerpts properly, but my “manual” excerpts to like 20 characters, no idea why!
In functions.php:
function blabla($excerpt_word_count=24) { global $post; $excerpt = $post->post_excerpt; if( $excerpt == '' ) { $excerpt = $post->post_content; $excerpt = strip_shortcodes( $excerpt ); $excerpt = str_replace(']]>', ']]>', $excerpt); $excerpt = strip_tags($excerpt); $words = explode(' ', $excerpt, $excerpt_word_count + 1); if (count($words) > $excerpt_length) { array_pop($words); $excerpt = implode(' ', $words); $excerpt .= '...'; } } return $excerpt; }<?php if ( is_single() ) { ?> <meta name="description" content="<?php echo blabla(); ?>" /> <?php } ?>I’m not sure if this way is better than the other method I saw with creating another “Loop” to get the excerpt.
Forum: Fixing WordPress
In reply to: Automatic Excerpt is Not WorkingNevermind, I missed the part where it said this thing is supposed to be in “The Loop”.
But somehow, if a post has a manual excerpt added, it does work. Is this normal?
Forum: Plugins
In reply to: [Plugin: Widget Logic] WP3.0 CompatibilityIt worked fine for me with WP 3.0. Dunno if that helps 🙂
Hm… All I can say is that I got the same mistake, but the plugin seems to be working just fine so I didn’t care 🙂
If I deactivate and activate again it doesn’t generate the error.