amogle
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Warning: Cannot modify header information – headers already sent byit is likely to be black space in your functions.php file. try naming your functions.php file to functions.bak if the warning goes away you know it’s a bit of white space in the file.
Forum: Plugins
In reply to: [Plugin: Magic Fields] – If Field Is Empty – Don’t Show It!Hello. I have been looking for something like this too, and after about 2 hours of searching google and trial and error I think I have found the solution.
if ( get(‘field_name’,TRUE) ) {
do this ;
} else {
do something different ;
}So in your case you want to write:
if ( get_group(‘testimonials’,TRUE) ) {
I hope this helps.
Forum: Plugins
In reply to: [Plugin: Wp-e-commerce] Get category name & urlany updates on this. I am looking for something similar.
Forum: Themes and Templates
In reply to: Help with category.php loopI too was having a very similar problem. Your solution has fixed my issue. Thank you so much.
I was having trouble using showposts=1 (or any other query) in my category.php loop. It was then calling up the wrong category. $query_string works like a charm.
While I am very greatful that this works, I do not know why it works. Any ideas?
Forum: Plugins
In reply to: WordPress syntax mode for Coda editorThanks!!
Forum: Themes and Templates
In reply to: Highlight visible post in archive.phpI solved the issue using
$post_id == $post->ID
So the line is now
if ( is_single(“$post->ID”) || $post_id == $post->ID ) ) { echo ‘ class=”current_page_item”‘; }
works like a charm 🙂
I realise that $post_id is confusing so I would recommend calling it $currentpostid instead.
Forum: Fixing WordPress
In reply to: After automatic upgrade to 2.8 my admin page is blank?I had the same problem but renaming the plugins folder didn’t work for me. I had to rename the theme folder to themes_broken. Then login to wp-admin/ and then rename the theme folder back to themes.
Hope this helps some of you.