Took me a while to figure out, but if you put images in plainly (not using the gallery or featured image) they will automatically show up as a gallery on the front page. You have to use the add media button, or put them in as regular html so they show up like:
<img src="..url.." /><img src="..url.." /><img src="..url.." />
Hope this helps!
thank you ! but this dosn’t work for me. it seems like there is a bug in the theme that is related to this part in the functions.php code:
function fukasawa_flexslider($size) {
if ( is_page()) :
$attachment_parent = $post->ID;
else :
$attachment_parent = get_the_ID();
endif;
if($images = get_posts(array(
'post_parent' => $attachment_parent,
'post_type' => 'attachment',
'numberposts' => -1, // show all
'post_status' => null,
'post_mime_type' => 'image',
'orderby' => 'menu_order',
'order' => 'ASC',
))) {
when i change it to !is_page, then it shows the gallery but with the wrong images
OK i have found the solution ! what you need to do is to go into the featured image area. add new images (upload, not choose from the current media library). and then you can just exit and publish the post.
this action will associate those images with the post media and they will be showen as a gallery (if you choose the “gallery” option).