• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Tag archive page not including attachments

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Tag archive page not including attachments

This topic is: resolved

Tagged: attachments, media library, tag archive

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 4 months ago by tomatillodesign.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 30, 2014 at 4:31 am #126244
    tomatillodesign
    Member

    Not sure if this is a Genesis question or a more general WP question:

    I've setup attachments in my Media Library to accepts tags, using this function:

    function add_tags_for_attachments() {
        register_taxonomy_for_object_type( 'post_tag', 'attachment' );
    }
    add_action( 'init' , 'add_tags_for_attachments' );

    My problem is that on the front-end of my site, my tag archives (www.example.com/tag/ice-cream) are only displaying blog posts, not attachments (links to PDFs in this case). What do I need to do to include attachments in the results?

    November 27, 2014 at 8:50 am #132985
    Susan
    Moderator

    As you posted this a while ago, I hope you were able to get your issue resolved. If it is resolved, please mark it "resolved", so it can be closed.

    If it is still not resolved, come back and check in, and I will investigate/escalate further.

    Thanks!

    December 2, 2014 at 9:10 am #133421
    tomatillodesign
    Member

    Thanks for following up. I couldn't find a good answer so I hacked something together. I created a new Custom Post Type with a media upload, and WordPress default tags and categories picked it up and worked well.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble