Anatomy Of A WordPress Plugin: Shortcode Extract Of Parameters

[featured-image]In my last post I discussed adding a shortcode to the plugin and covered how to extract the parameters passed into the function from the shortcode. There is one variation to this example which it is probably worth mentioning. In the last post I showed that the width parameter could… Read more“Anatomy Of A WordPress Plugin: Shortcode Extract Of Parameters”

Anatomy Of A WordPress Plugin: Adding A Shortcode

[featured-image]Additional functionality can be added to posts and pages through the use of shortcodes. Up to now I have created and published six plugins of which two thirds use a shortcode to add easy-to-use additional functionality. For example the Series Index plugin uses a [series-index] shortcode to display the series… Read more“Anatomy Of A WordPress Plugin: Adding A Shortcode”

Anatomy Of A WordPress Plugin: Loading CSS & JavaScript Together

[featured-image]In the last couple of posts in this series I’ve taken a look at using wp_enqueue_scripts to load the CSS and JavaScript files. In those examples, the CSS and JavaScript were loaded via different functions. However, we could use add_action to call one function to load both the CSS and… Read more“Anatomy Of A WordPress Plugin: Loading CSS & JavaScript Together”