This members-only tutorial provides the steps to set up Oxygen Easy Posts on a CPT archive with featured image opening a lightbox that shows images set in Advanced Custom Fields Gallery-type field as a slider for each post.
ACF Gallery field for Portfolio CPT:
CPT archive page:
When an entry's featured image is clicked:
For posts that do not have at least one image set in the gallery, we will show the featured image.
Let us register a custom image size for the featured images and images in the lightboxes.
Install and activate Code Snippets plugin.
Go to Snippets > Add New.
Title: Custom image sizes
add_image_size( 'portfolio_lightbox_image', 800, 450, true );
Save changes and activate.
Install and activate ACF Pro.
Add a new field group having a Gallery type of field attached to your CPT.
Add some CPT entries whilst populating (uploading to/selecting images) the gallery-type custom field and the featured image for each.
Install and activate My Custom Functionality plugin.
Connect to your hosting account using a FTP client and navigate to site's
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.