Register and load scripts

You don’t need if ( !is_admin() ). wp_enqueue_scripts only runs on the front end. WordPress loads jQuery in “No Conflict” mode. The $ alias does not work. Use jQuery or wrap your script is a function as demonstrated in the jQuery docs: jQuery.noConflict(); (function($){ $(function() { // more code using $ as alias to jQuery … Read more

Edit Yoast SEO breadcrumbs output [closed]

They are all null. You haven’t set any of those variables. Here is your function. function ss_breadcrumb_output() { return apply_filters( ‘ss_breadcrumb_output’, ‘<‘ . $wrapper . $id . $class . ‘ xmlns:v=”http://rdf.data-vocabulary.org/#”>’ . $output . ‘</’ . $wrapper . ‘>’ ); } All of the variables in that function are isolated to that function. Variables set … Read more

WooCommerce – Want to show multiple currency for a single product [closed]

It seems that at least a pair of plugins have been developed for this: http://dev.pathtoenlightenment.net/shop/currency-switcher-woocommerce/ and 11/27/15 Deadlink: http://codecanyon.net/item/woocommerce-currency-converter/4545063 I couldn’t vouch for either as I haven’t used either. I think that some multisite extensions are also in development, which might allow different sub-sites to show the same product in different currencies/prices.

Custom Metabox Not Saving

When you do that include, you are trying to add the save_post hook inside the add_meta_boxes_$post_type hook. It should be independent. add_action( ‘add_meta_boxes_page’,’load_home_meta’ ); add_action( ‘save_post’, ‘save_home_meta’ ); // Declare all callback functions Also, you shouldn’t declare a function inside a function. Maybe you should consider creating a plugin for handling this, see: Where to … Read more

How do you publish a draft on WordPress

The preview usually opens in a new tab/window for convenience. Even before going to preview, there should be a blue ‘Publish’ button present in the same area as the ‘Preview’ button, “the same area” being the Publish metabox. Below is what the Publish metabox looks like in the latest version of WordPress (3.5.1).