Rob Cubbon
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Smart YouTube] short URL changeThanks, totalgaz, that’s a good solution! 🙂
Forum: Themes and Templates
In reply to: Taking comments off pages in 2010 child themeI might have this wrong AardvarkGirl, but I think you can do that. If you, on a Page go to Screen Options top right and check Discussion, you can then, at the bottom, uncheck Comment and Pings.
I’ve just done this on 2010 and it works pretty well. But sometimes you get an ugly “Comments are currently turned off” message.
Forum: Themes and Templates
In reply to: Taking comments off pages in 2010 child themeHello abinav, thank you for these solutions. However, I’m using a child theme of 2010 so that when 2010 is updated I won’t lose all the changes I make. If I edit the page.php of 2010 and then 2010 is updated, won’t I lose the changes?
That’s why I was wondering if there was a way of doing this within functions.php of the child theme.
Forum: Fixing WordPress
In reply to: Feedburner feed not updatingI can’t believe it – the problem was the Feedburner maximum – I think about 500K – I cut the number of posts syndicated down to 35 in Settings > Reading and it started working again after a few minutes.
I found this post helpful
http://www.dragonblogger.com/fix-wordpress-feedburner-feeds-not-updating/
which put me onto the Troubleshootize tab int Feedburner where you can Re-Sync feed and that will search for solutions if there’s problems with your feed.
Forum: Plugins
In reply to: Multilingual plugin and sidebarI don’t know if you still need the answer to this question after 5 months but the answer is yes!
There are conditional PHP tags you can use to determine the language:
<?php if(ICL_LANGUAGE_CODE=='en'){ ?> ...English content... <?php } if(ICL_LANGUAGE_CODE=='ja'){ ?> ...Japanese content... <?php } ?>Forum: Fixing WordPress
In reply to: Combining two conditionsMy bad. Obviously, it should be
<?php if ( in_category('veg') && ( is_user_logged_in() ) ) { ?> Do this <?php } elseif (in_category('fruit') && ( is_user_logged_in() ) ) { ?> Do this <?php } elseif ( in_category('veg') && ( !is_user_logged_in() ) ) { ?> Do this <?php } elseif (in_category('fruit') && (! is_user_logged_in() ) ) { ?> Do this <?php } else { ?> Do that <?php } ?>Sorry!
Forum: Fixing WordPress
In reply to: Combining two conditionsActually, I do need to put in some extra conditions.
This works:
<?php if ( in_category('veg') && ( is_user_logged_in() ) ) { ?> Do this <?php } elseif (in_category('fruit') && ( is_user_logged_in() ) ) { ?> Do this <?php } else { ?> Do that <?php } ?>But, when I try adding if user isn’t logged in this doesn’t:
<?php if ( in_category('veg') && ( is_user_logged_in() ) ) { ?> Do this <?php } elseif (in_category('fruit') && ( is_user_logged_in() ) ) { ?> Do this <?php if ( in_category('veg') && ( !is_user_logged_in() ) ) { ?> Do this <?php } elseif (in_category('fruit') && (! is_user_logged_in() ) ) { ?> Do this <?php } else { ?> Do that <?php } ?>It gives me Parse error: syntax error, unexpected T_ENDWHILE the endwhile is at the end of the loop, not here.
Forum: Fixing WordPress
In reply to: Combining two conditionsIt actually worked out that there were only 3 permutations necessary as there are only 2 categories in this loop and I only wanted one thing to happen if users weren’t logged in but these multiple conditionals are so, so powerful…
<?php if ( in_category('veg') && ( is_user_logged_in() ) ) { ?> Do this <?php } elseif (in_category('current-loan') && ( is_user_logged_in() ) ) { ?> Do this <?php } else { ?> Do that <?php } ?>Thank you, 123milliseconds, it never ceases to amaze me the quality advice I get here.
Forum: Fixing WordPress
In reply to: Combining two conditionsActually, before you posted I found you could do it with less brackets
<?php } elseif (in_category('veg') && is_user_logged_in() ) { ?>Forum: Fixing WordPress
In reply to: Combining two conditionsI’m sure I’m doing something really stupid but with
<?php if (in_category('veg') && (is_user_logged_in() ) { ?>I’m getting: Parse error: syntax error, unexpected ‘{‘
And with
<?php if (in_category('veg')) && (is_user_logged_in() ) { ?>I’m getting: Parse error: syntax error, unexpected T_BOOLEAN_AND
Forum: Fixing WordPress
In reply to: Combining two conditionsThank you, 123milliseconds, I need to spend more time on php.net – I’ll see how I get on with this and post the code later.
Forum: Fixing WordPress
In reply to: Can't get into admin after upgrade to 3.1Have you sorted this issue out, firedoghk, it sounds like an incomplete upgrade but I’m not sure of how to fix it. Have you seen this?
http://onemansblog.com/2009/07/21/tutorial-what-to-do-when-wordpress-auto-update-fails/I just thought I would say for the record that everything is fixed now. I fixed the Multiple Post Thumbnails issue by getting rid of the plug-in
I fixed the notices appearing when activating UnderConstruction plug-in by changing
define('WP_DEBUG', true);todefine('WP_DEBUG', false);in wp-config.phpI received a lot of help here to fix the Super Cache issue.
And, finally, the plug-in developers at WPML (the multi-lingual plug-in) released another version which contained a fix for my issue with it.
So, 5 days later, everything is back to how it was pre-3.1. Challenging but maybe I learned a little bit. Most of these problems came from plug-ins that where incompatible with the WP upgrade.
Thanks to everybody that helped
Forum: Fixing WordPress
In reply to: Conditional tags "if category = …"That worked!
keesiemeijer, that’s probably the 4th time you’ve really helped me out. I really appreciate it. I just don’t know what to say!
Thank you, donncha, I did this and it worked.
Forum: Fixing WordPress
In reply to: Set a simple countdown timer using custom fieldsThank you so much, alchymyth, that works like a dream.