Smashed Blog Development

Tag Archive: wordpress

Gravity Forms 1.4.5 – no such method ‘select’ for tabs widget instance

Comments Off

I recently bumped into the problem mentioned here in the latest WordPress update when using Gravity Forms.

The fix outlined is for Gravity Forms, I’m using version 1.4.5 so the described changes don’t exist.
Below is a fix for the latter.

Locate the file js.php in wp-content/plugins/gravityforms/

Find this line around 1251:

jQuery("#field_settings").appendTo(".field_selected").tabs("select", 0);

and change to:

jQuery("#field_settings").appendTo(".field_selected").tabs("option", "active", 0);

Hope that helps!

Shopp WordPress Plugin images not working solution

Comments Off

If you are having problems with your Shopp product images not displaying, try removing the following line (or similar) from your .htaccess file in your root directory.

RewriteRule ^.*shop/images/(\d+)/?\??(.*)$ /wp-content/plugins/shopp/core/image.php?siid=$1&$2 [QSA,L]

WordPress shortcode in a template

Comments Off

This has come in handy loads of times.

<?php echo do_shortcode("[shortcode]"); ?>