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

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.

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).

Setting Up Scheduled Tasks (For Scripts to Run)

WordPress “cron” jobs are database entries that are run on a set schedule, rather than true Linux cron jobs. While WordPress cron jobs are relatively reliable, they do require someone to hit the site in order to check if they need to run. Meaning, if you have a very low traffic site, you may want … Read more

qTranslate in functions.php

Are we talking permalinks here or any URL? If any, create an array( ‘en’ => ‘en_url’, ‘de’ => ‘de_url’ ); and get the URL by accessing the array using qtrans_getLanguage() index. If you’re translating internal permalink use the qtrans_convertURL() function.