Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 1

Excluding Blog Posts by Category (in Gallery)


BrookwoodDrew

Question

Hi all,

Short Description

I'd like to suggest the addition of the ability to exclude blog posts by category when creating a gallery of posts.

 

Verbose Description

A site I'm developing for a client employs several separate blog instances.

One blog instance is for managing which employees are displayed on team pages. We can quickly add/remove team members simply by adding/changing/removing a category from their bio. We can slice and dice employees using categories like title or division. It's really quite handy.

Another blog I'm using on that same site is for managing the display of projects executed by this client, with separate pages created for each project type. Galleries work really great and allows automatic updating of category pages – adding a new project to a gallery is as simple as making a new post and then applying the correct category to it.  I can even reorder items by changing their publication date and time - it's a hack, but it works!

But I think I found a missing feature...

We already have the ability to constrain posts by specifying which categories we want to feature.

However, we do not have the ability to exclude post types by category.

Programmatically speaking, this isn't difficult.

 

 

Anyway, thanks for reading.

This  has been my first post to this community.

I have been increasingly pleased with my ability to customize the Squarespace platform to achieve design behavior above and beyond the standard templates. I fully expect for this request to exclude posts by category to go nowhere, but as they say: nothing ventured, nothing gained. At least I tried!

 

Link to post
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

@BrookwoodDrew   I have one summary block showing a single blog article that I have tagged as FEATURED. Then below it, I have another summary block with 30 items. I did not want to repeat the

3 answers to this question

Recommended Posts

  • 0
On 12/14/2019 at 8:38 PM, BrookwoodDrew said:

Hi all,

Short Description

I'd like to suggest the addition of the ability to exclude blog posts by category when creating a gallery of posts.

 

Verbose Description

A site I'm developing for a client employs several separate blog instances.

One blog instance is for managing which employees are displayed on team pages. We can quickly add/remove team members simply by adding/changing/removing a category from their bio. We can slice and dice employees using categories like title or division. It's really quite handy.

Another blog I'm using on that same site is for managing the display of projects executed by this client, with separate pages created for each project type. Galleries work really great and allows automatic updating of category pages – adding a new project to a gallery is as simple as making a new post and then applying the correct category to it.  I can even reorder items by changing their publication date and time - it's a hack, but it works!

But I think I found a missing feature...

We already have the ability to constrain posts by specifying which categories we want to feature.

However, we do not have the ability to exclude post types by category.

Programmatically speaking, this isn't difficult.

 

 

Anyway, thanks for reading.

This  has been my first post to this community.

I have been increasingly pleased with my ability to customize the Squarespace platform to achieve design behavior above and beyond the standard templates. I fully expect for this request to exclude posts by category to go nowhere, but as they say: nothing ventured, nothing gained. At least I tried!

 

@BrookwoodDrew

 

I have one summary block showing a single blog article that I have tagged as FEATURED. Then below it, I have another summary block with 30 items. I did not want to repeat the FEATURED post in that block. It is not the most elegant or perfect solution but I have simply told the first item in the specific summary block not to display.

Example:

#block-yui_3_17_2_1_1594082530518_15247
.summary-item:nth-child(1) {
  display: none;
}

Link to post
  • 0

I'm trying to do this too. with a large featured blog post on top of a grid of smaller ones.

Is there a solution to this that excludes featured? The first item in the grid may not always be the same as the featured


Hannah Dossary
Web & Digital Designer

https://hannahdossary.com

Link to post

Create an account or sign in to comment

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


×
×
  • Create New...