Skip to main content
Home / The Lodge / Building a Mobile-First WordPress-Powered Artists Website / #027 – Admin Control of Homepage Slides

#027 – Admin Control of Homepage Slides

We have another post type that needs the proper custom fields applied: the homepage slides. This is the kind of thing that would be easy and tempting to hard-code into the template, but we're going to go the extra mile here and allow Jeff to control everything about the homepage slider. Post new photos of work as a new slide. Delete old ones. Re-order them. Whatever else we want him to have control over.

We take things a bit farther this time and actually output the data we're collecting into the template. We do a WP_Query loop for just our custom post types. Then we use the ACP API to output the data we need to output. In our case, all we need is the URL to the photo we uploaded.

icon-link icon-logo-star icon-search icon-star