nouveller
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Types Order] PHP Strict StandardsAh yes, our plugin versions may differ slightly but adding
$current_object_id = 0
should fix it up!Forum: Fixing WordPress
In reply to: HTTP error while uploading mediaI run into the same thing with this setup on particularly large files, normally above 34MB.
I’ve got an Amazon Sync script of my own which works fine locally but on this server it struggles to get the larger files across.
Forum: Plugins
In reply to: [Post Types Order] PHP Strict StandardsGuys, I have a hotfix if you need this working.
Inside of the plugin, look for the
start_el
method. The declaration should looking something like this.function start_el(&$output, $post_info, $depth = 0, $args = array())
This needs to match WordPress’ Walker class, which looks like this.
function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 )
So simply change:
function start_el(&$output, $post_info, $depth = 0, $args = array())
to
function start_el(&$output, $post_info, $depth = 0, $args = array(), $current_object_id = 0)
Be nice for the plugin author to implement this and issue an uodate.
Forum: Fixing WordPress
In reply to: WordPress jquery problemIf you don’t actually want to navigate anywhere and just change the heading’s colour, you need pass the event to the click’s callback and call
e.preventDefault()
to stop it doing it’s default action, which is change the page.<script type="text/javascript"> $(document).ready(function(){ $('#nav li a').click(function(e){ $('#oneBtn').css('color','red'); e.preventDefault(); }); }); </script>
This is of course no good to you if you need the the page to change.
Forum: Fixing WordPress
In reply to: Please Help! Mantra not working on IEI just checked the site in IE 8 and 9, loads fine for me.
??
I had this occur today with 3.3.1. I was running my website locally and the parent folder that I had WordPress in had a space, so “localhost/Folder%20Name/wordpress”. The sprintf was trying to do something with the “%”, so changing the folder to “FolderName”, solved it. Slightly annoying.
Don’t forget to update all your WP url’s in the database after that one.
Forum: Fixing WordPress
In reply to: Limiting editors to categoriesThanks for that, it looks like it should do what I was after. I don’t really need the weight of the entire plugin so I’ll snip out the category stuff, cheers!
Forum: Fixing WordPress
In reply to: 404 or a failed search breaks custom loopsThanks for the reply but unfortunately it didn’t work. I’ve gone back to an old snippet of code that seems to work.
$temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query('posts_per_page=30');
Forum: Developing with WordPress
In reply to: Tags and SEOYou’re asking the age old SEO questions, hehe.
1. I would highly recommend they do.
2. Yeah, it’s a pretty good idea as it keeps them relevant.
3. You should limit your keywords (no one really knows what to, I’ve heard of limiting them to seven) so you don’t get in trouble for keyword spamming.
Forum: Fixing WordPress
In reply to: Static Pages and Posts – Is this possible ?You would have to create a Template Page which would have to have two loops.
One that would pull in your normal page content, the second would need to utilise query_posts() (or possibly make a new WP_Query() object) on the second loop to pull in the football category.
Forum: Fixing WordPress
In reply to: Pages not found after moving to a new directory and back…Have you tried following these instructions: https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory
Forum: Fixing WordPress
In reply to: How to publish syndicated news from news agenciesForum: Fixing WordPress
In reply to: Conditional textHow about:
Blue or black: <?php echo c2c_get_custom('blueorblack'); ?> <?php if(c2c_get_custom('blueorblack') == 'blue') : ?> What kind of blue: <?php echo c2c_get_custom('whatblue'); endif; ?>
Forum: Fixing WordPress
In reply to: show post by category in tmplNo problem, I wasn’t going to write the whole loop for you! ??
Forum: Fixing WordPress
In reply to: 500 Internal Server Error9/10 cases it’s down to a .htaccess error. Try removing it and see if it works.