• 0
Sign in to follow this  
Followers 0

Hide feature image from gallery shortcode

Question

Posted · Report post

Hey, this is my first forum post. I've mucked around with pagelines pro for two days now and am very impressed. I love it. When I make a blog entry, many times my images are collages. This works well on the full post, but the feature image looks best when it is not a collage (i.e. one horizontal & one vertical etc) How would I set it up so that the feature image selection is excluded from the gallery in the full post? If you look at my example link, you'll see the first image is the feature image, but I have that same photo in a collage image too. Example Post: Andrea & Clay This is the wordpress shortcode I used for that blog entry.

[gallery link="file" columns="1" size=120]

There may be a few ways to go about doing this, so I thought it would be best to poll the audience before I rack my brains on it.

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

Posted · Report post

If you'd like to hide the full-size first image that appears in that post, you can add this to the gallery shortcode:

exclude="21"
. You can replace the number 21 with the attachment ID for the full-size image you want to exclude. In this case, the ID number for it is 120 (I found this ID number by looking at your website's source code, but you can find it by looking at your blog post content in HTML editor mode), so your gallery shortcode for the blog post should look like this:
[gallery link="file" columns="1" size=120 exclude="120"]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0