Tell us what you are trying to do? I like to have a slider with images (they needs to be able to edit/add per user (external users) - between 3 to 5 images (max 5).
But I am not sure where I should start. I created a separate custom post type and trying to create a relationship - but not sure if this is the easiest way. It just should be an easy slider.
hidden link
Instead of one image, I like to have a slider.
Is there a similar example that we can see? hidden link
What could be a best approach. I not use WordPress Blocks!
Thank you for contacting us and I'd be happy to assist.
Your understanding is correct and I'll also recommend adding a custom post type for this. You can name the custom post type something like "User Profiles".
When a new user registers, you can include a "Add new user profile" form on the page that they see after logging in. And for every user, you'll need to have exactly one user profile post, where that user is the post author.
Next, you can add a repeating image type field with this new post type, so that users can upload their images while creating their user profile.
Once you have the images in a custom field, you'll be able to show them in a slider using the slider block.
To let You understand - this with the users I am doing later.
The main custom post type are Muay Thai Gym's. Each of them will have then up to 5 images. So You advise to add a Repeatable Group? Like this: hidden link
As I wrote earlier: I not use WordPress Blocks! So I might just need to do a view? And add this view in my template?
Note: The screenshot that you share, is showing the repeatable field group. The solution that I'm sharing doesn't involve that. It just involves an image type field, that is set to have multiple instances.
( screenshot attached )
I can use any slider script. Correct?
Are I am also able to put it together in function.php and create a short code? I like to do some conditional output logic, if there aren't any images, it should use the featured image.
I am getting close to there, where I like to be...
hidden link
Next step is, to have a conditional logic, so whenever there are no additional images for the slider, it should show the featured image. How do I add the conditional output?