admin管理员组

文章数量:1410689

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
Add a comment  | 

1 Answer 1

Reset to default 1

Uploaded 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.

本文标签: pluginsHow to have a gallery in which each image39s caption is a whole quotpostquot