Site logo

Archived topic

Are there GeneratePress filters hooks to disable attachment slugs?

3 replies · Started by vast on December 12, 2021

Viewing posts 1–4 of 4

There is currently a "Block - Hook" element with the name of an individual author e.g. John Doe that displays their biography at the bottom of the page i.e. generate_after_content. A photo of the author is also uploaded e.g. john-doe.jpg.

The photo of the author is accessible with the slug that's created - http://www.domain.com/john-doe.

Is there a GeneratePress filter that can disable this?

Hi there,

That's right. GP Elements are technically a special custom post type w/ a slug gp_elements.

WordPress' default query shouldn't include gp_elements as default queries usually only types posts and/or pages. It should only show if queries are specified to include all CPTs.

Can you link us to the specific archive page were it occurs?

Thanks Elvin. After some sleuthing, it's a default function of WordPress as uploaded media generate unique attachment pages.

Glad you got it sorted. Thanks for letting us know. :D

This archived topic is closed to new replies.