After playing around with some jQuery sorting demo’s I wanted to be able to implement these easily into WordPress.
The steps needed to complete this are:
- Register jQuery, and jQuery UI libraries with WordPress.
- Enqueue the scripts to load them on blog pages ONLY.
- Set-up a shortcode to render jQuery code.
- Add jQuery code to shortcode callback function.
- Add the shortcode to any post/page to see it working!