Support » Theme: Fukasawa » how to create gallery post ?

  • Resolved roycegracie


    hello. it is un clear how can i create a gallery post or video post like in the demo

    i was looking all over online, also in this forum and found no explanation.

    can you please give me some guidance ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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!

    • This reply was modified 1 year, 8 months ago by  ashleykuipers.

    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();
    	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).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to create gallery post ?’ is closed to new replies.