This members-only tutorial provides the steps to use Advanced Custom Fields to set up a HappyFiles category selector so that images from the selected categories will be shown as a gallery on Pages or Posts etc.

Categories in Media Libary:

Selecting one or more categories when editing a Post:

Post when viewed on the front end:

Images in the selected categories will appear

Step 1

Installed and activate ACF and HappyFiles.

Go to Media > Library, create your desired categories and drag images into them.

Go to Custom Fields > Add New and create a new field group having happyfiles_category Taxonomy type of field.

Ensure that the return value is set to Term ID.

Set it to appear at your desired location.

Step 2

Edit the Oxygen Template that applies to your post type, in this example, to all the posts.

Add a Code Block component where you want to display the images from the selected categories for each post.

Set Width to 100%.


This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $399 one-time).

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?


Find the article helpful and wish to donate?



You need to be logged in to view and post comments.
Not a member yet? Join here.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: