I have read the codex, but found it a bit incomplete. I like to load […]
Tag: scripts
What is your best practice to execute one-time scripts?
The Problem We all have been in a situation like this, and a lot of […]
Setting up an API “listening” page
I need to create a PHP script that will receive data from another application via […]
Script Code in Text Widget Does NOT Show
I have a self hosted WordPress 3.7 and using the Twenty Thirteen theme. I have […]
Listing registered scripts
Back story : We have a number of wordpress web sites experiencing issues when viewed […]
How to prevent wordpress from loading old versions of jquery in wp_head();?
I noticed my twenty twelve theme is including outdated versions of jquery and js so […]
How to load JQuery easing script in wordpress?
Ok, first of all, I know how to do this manually. I could just download […]
how to put a custom field value in variable
function zh_get_invoice_round_off_number() { global $post; return get_post_meta($post->ID, ‘invoice_round_off_number’, true); } function zh_invoice_round_off_number() { echo zh_get_invoice_round_off_number(); […]
Add a script as a dependency to a registered script
wp_register_script() (see codex) allows you to specify dependencies: scripts that must be loaded before the […]
How to load script-related styles automatically?
Scenario: It is common that a JS dependency is bundled with a style file to […]
No More Posts Available.
No more pages to load.