- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
- Referred between 500 and 999 users
- Sold between 250 000 and 1 000 000 dollars
So, I’ve tested this on a couple sites now and found that it happens when I upgrade from WordPress 3.0.4 to 3.1 RC.
I’m using Coin Slider in my theme, and it’s breaking now. I can’t figure out why.
Here’s a link to an example of what I mean:
http://www.striveforprogress.com/
In the example, the wordpress site has no plugins, or any added JS. The theme the way it is has Coin Slider working with WP 3 .0.4, and after upgrading to WordPress 3.1 RC, the result you see happens. Inspecting with Firebug, you can see all kinds of javascript errors with the coinslider.js file now (after upgrading to 3.1 RC).
Anyone have any clue why this could be happening?
I see that WordPress RC 1 is loading the latest jQuery version (1.4.4). I’m not sure but there may be an incompatibility with this version and CoinSlider. I’m saying this because I had a few problems with jQuery 1.4.4 and prettyPhoto.
Try this code where you usually enqueue scripts in WordPress (it loads jQuery 1.4.3):
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"), false, '');
wp_enqueue_script( 'jquery' );- Author had a Free File of the Month
- Author was Featured
- Bought between 10 and 49 items
- Egypt
- Exclusive Author
- Has been a member for 2-3 years
- Item was Featured
- Referred between 10 and 49 users
- Sold between 10 000 and 50 000 dollars
I dont this its a jQuery neither coin slider issue, its simple because there are no images for the slider to work on. Take a look at the source code, the slider bit and you will find no images there!
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
- Referred between 500 and 999 users
- Sold between 250 000 and 1 000 000 dollars
Blah, you’re right wizy! WTF … the way I’m doing my wordpress loop doesn’t work any more with 3.1. I’m using the setup_postdata function, but now with 3.1, none of my info is being pulled for each post.
<?php $slideshow = get_posts($query_string)
foreach($slideshow as $slide){
setup_postdata($slide);
//Set the description if exists
$description = get_post_meta($slide?>ID, 'jaybichSlide-description', true);
//Set the link if exists
$link = get_post_meta($slide->ID, 'jaybichSlide-link', true);
?>
<a href="<?php echo $link; ?>" title="<?php the_title(); ?>">
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail($size); ?>
<?php endif; ?>
<?php if($description) : ?>
<span>
<span class="pad">
<?php echo $description; ?>
</span>
</span>
<?php endif; ?>
</a>
<?php } //end foreach
?>
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
- Referred between 500 and 999 users
- Sold between 250 000 and 1 000 000 dollars
Looks like I just needed “global $post;” at the beginning … interesting I would need that little change after updating to 3.1
