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
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.
本文标签: pluginsHow to have a gallery in which each image39s caption is a whole quotpostquot
版权声明:本文标题:plugins - How to have a gallery in which each image's caption is a whole "post"? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744786155a2625013.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论