New answers tagged


You could use a plugin such as CDN enabler to rewrite your origin domain URLs to reflect your CDN URLs. If you only want it to change the URLs for assets within your wp-includes directory this can also be defined within the plugin.


You could use a function like so: function construction_intro( $id = '', $echo = true ){ $id = absint( $id ); switch ($id) { case 123 : $name = "Hillary's"; $location = "Washington D.C."; break; case 9999 : $name = "Bernie's"; $location = "Burlington"; break; ...


You can simply use wp_enqueue_script or wp_enqueue_style in the widget method (function) in your custom Widget class and it will load the scripts only if the widget is active. See details and example here:

Top 50 recent answers are included