I want to have a post like a gallery, but each image has an analysis for it. That analysis is like a post itself, with headings, paragraphs and some even have galleries within. I can make the post a series of post, but I would like to preserve the navigation between images like a gallery (forward/backward buttons and/or black background).
So far, using the built-in gallery, it's like this:
Clicking on one particular image, the caption is only one line:
I imagine my preferred outcome would be Facebook album:
Note that the "caption" of each image would be long and need to has rich formats.
Is there a way to do that?
Also asked on Software Recommendations Stack Exchange: WordPress plugin to have a gallery, in which each image's caption is a whole post?
I want to have a post like a gallery, but each image has an analysis for it. That analysis is like a post itself, with headings, paragraphs and some even have galleries within. I can make the post a series of post, but I would like to preserve the navigation between images like a gallery (forward/backward buttons and/or black background).
So far, using the built-in gallery, it's like this:
Clicking on one particular image, the caption is only one line:
I imagine my preferred outcome would be Facebook album:
Note that the "caption" of each image would be long and need to has rich formats.
Is there a way to do that?
Also asked on Software Recommendations Stack Exchange: WordPress plugin to have a gallery, in which each image's caption is a whole post?
Share Improve this question asked Jan 31, 2020 at 10:06 OokerOoker 3324 silver badges23 bronze badges 4- Normally this would be closed as offtopic as it's asking for a recommendation – Tom J Nowell ♦ Commented Jan 31, 2020 at 18:21
- This still sounds like a recommendation request for you? – Ooker Commented Feb 1, 2020 at 2:33
- Yes, you posted the same question on software recommendations – Tom J Nowell ♦ Commented Feb 1, 2020 at 11:06
- Yes. I have intentionally changed the question to actually make this version in WordPress SE more like building a plugin for myself. Seems like it isn't clear enough though – Ooker Commented Feb 1, 2020 at 12:14
1 Answer
Reset to default 1Uploaded images are already posts, a gallery is just a list of post IDs with some display options
In WordPress, when you upload an image it creates a post of type attachment
, and these posts have URLs, templates, etc
If you just link the gallery items to their attachment page rather than the media file you'll see this page.
Then, you can add an attachment.php
to your theme, or even drill down to image.php
etc. It might even look like the FB album you wanted if you code it that way.
Since attachments are posts, they can have comments, post meta, etc, just put your analysis in the description rather than the caption.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744786155a4593640.html
评论列表(0条)