This members-only tutorial provides the steps to
- add a custom field group having a `venue` repeater field with `date` and `venue` sub fields using ACF Pro
- add the PHP necessary to display the rows of data in a Code Block in the Template for single posts in the HTML structure needed by DataTables
- load DataTables on single posts and initialize it on the table
Step 1Install and activate ACF Pro. Go to Custom Fields > Add New. Add a Field Group named say, "Post Meta". Add a
venuerepeater-type field having
locationsub fields. Here (mirror) is an export of the field group from my test site so you can import the entire field group in just a few clicks.
Step 2Edit your Posts and add as many rows of venue data (date and location) as you need.
Step 3Install and activate My Custom Functionality plugin. Connect to your hosting account using a FTP client and navigate to site's /wp-content/plugins/my-custom-functionality-master. Upload datatables.min.css to the plugin's
assets/cssdirectory. Upload datatables.min.js to the plugin's
plugin.phpand replace the content of
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $599 one-time).
Already a member? Log in below or here.