April 14, 2015 at 8:54 am
Hi everybody!
I am trying to create a homepage where my first blogpost is very big and the rest of the posts are smaller and in grid format. But I am having so much difficulty finding a shortcode that displays my first post pretty.
For example this shortcode:
[blog_posts orderby=”date” type=”normal” columns=”1″ items=”1″]
The post is of gallery type format so the featured image is an image slider. But when I choose to only display one post, the slider gets a strange size. I have both portrait as landscape images in the gallery and when I use this shortcode, the slider becomes extremely tall so it resizes to the image size. I would really like 1 image size (landscape), and every image on my blog set as featured image (or gallery format post) needs to be resized to that same proportion landscape image and the portrait images need to be auto cropped. Cause this looks sloppy. I just can’t get it done.
When I use this code:
[blog_posts orderby=”date” type=”grid” columns=”2″ items=”12″]
It does crop the portrait images as long as all the images are above a certain size.
Is there any way to control the featured image size/proportions and a pretty way to display one post bigger then the rest with only a title and a featured image/slider? Right now I have set up a page with two rows. One row is 100% wide and has the first shortcode mentioned above. The second row has two columns and the left columns displays the second shortcode mentioned above!
Hope somebody can help me cause I am just about to pull out my own hair, just can’t figure it out 😉
Website