Create Tabbed Content in WordPress with ACF Repeater and Tabslet

acf-tabs-wordpress-tabslet-repeater

This tutorial walks through how to create a Tabbed content section in WordPress using Advanced Custom Fields and Tabslet. ACF (Advanced Custom Fields) Pro comes with an addon called the Repeater field which allows a user to perpetually add additional rows of data of certain custom fields to a page or post (or custom post type) in WordPress. This can be…

Read More

Filtering the Gallery Image Output in WordPress – Adding Class or Data Attribute

filter-gallery-output-wordpress

To manipulate the linked images, specifically the links themselves in the WordPress Gallery output for doing things like adding in a CSS class or a data attribute value you can use the post_gallery filter in /wp-includes/media.php which is the right tool for the job. The filter can be applied like so… So this is an exact copy of the original…

Read More

Output the label of an ACF field

You can output the label of an Advanced Custom Field: ACF field by using the get_field_object() function which stores an array of data about the custom field. /* * Output Label from ACF field */ $field_name = “acf_field_name_here”; $field = get_field_object($field_name); echo ‘<h3>’. $field[‘label’] . ‘</h3>’;

Read More