My question is very simple: Is it possible to import many images at once in a post (such as the gallery does) but inside a <ul> for instance ?
The gallery import is, I think, the only way to import a group of images inside a post, but I can’t handle the HTML in this case.
I can be wrong, but I didn’t find anything about that. Thank you for your help.
My question is very simple: Is it possible to import many images at once
Share
You can insert your images in the gallery without importing it into your post. Then, in the single post template, you can query the images attached to the post to display them.
Attachments are just posts attached to a post, so let’s use get_posts():
I suggest to place this function in the functions.php file.
In your single.php file:
WP Codex links: