Pull the first image from a Tumblr photoset?

前端 未结 3 2094
执笔经年
执笔经年 2021-02-06 18:26

I\'m designing a theme for a wedding photographer who wants to use Tumblr\'s Photoset functionality to create a portfolio site.

How do I pull the first image from a phot

3条回答
  •  醉话见心
    2021-02-06 19:13

    There doesn't seem to be a way to limit them, but you can comment them out. This solution has the advantage that the hidden images won't be loaded at all and it doesn't need any javascript

    {block:Photoset}
        
        {block:Photos}
            
            
    
        {block:Caption}
            

    {Caption}

    {/block:Caption} {/block:Photoset}

    See that . Done, all the images in the photoset after the first one will be hidden.

提交回复
热议问题