• 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

Tags/Categories not working?

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 › Design Tips and Tricks › Tags/Categories not working?

This topic is: not resolved

Tagged: categories, meta, tags

  • This topic has 9 replies, 3 voices, and was last updated 5 years, 9 months ago by ashleighk.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • July 31, 2017 at 1:46 pm #209771
    ashleighk
    Member

    Sorry if this is in the wrong place, but I can't figure out why my tags/categories don't link to anything on https://wamcpodcasts.org/. It seems to only happen with the Digital Pro theme. Is there a fix anyone knows about?

    https://wamcpodcasts.org/
    July 31, 2017 at 2:06 pm #209776
    paulag01
    Member

    Where are you trying to link categories and tags from? I do not see them on your posts or sidebar to even test. Maybe I am misreading your question, but would love to help if I can.

    July 31, 2017 at 4:19 pm #209781
    ashleighk
    Member

    Sorry for not being clear! When you click on tags, usually you get a page of other posts that use the same tag. That does not happen at the site I mention above. when you click on a tag on a podcast, you don't get a group of episodes that relate to that tag. I hope that is clearer, and I appreciate your help.

    July 31, 2017 at 5:08 pm #209784
    paulag01
    Member

    I understand what you're saying but where are you clicking on "tags"? I don't see tags listed in the meta data of the podcast episodes or on the sidebar or elsewhere (thus I am not seeing a place to click and see if the link you are referring to works or not).

    July 31, 2017 at 5:16 pm #209785
    ashleighk
    Member

    Sorry. I turned off the tags. They are back on. The same thing happens with the categories (podcast series).

    August 1, 2017 at 7:09 am #209823
    paulag01
    Member

    That is odd. I would recommend checking out how you set the slugs for tags, any changes to metadata. I wish I had more suggestions... if it were my theme I would root around a bit in the code of the templates and call to the tags.

    For kicks - if you switch to a default theme (like Twenty-Seventeen) for a moment, do the tags work then? It'll help you narrow it down to something on your setup vs something Genesis vs something your child theme.

    August 1, 2017 at 8:13 am #209827
    Victor Font
    Moderator

    I just went on your site and clicked on your tags and they are all linking to a tag search results page. Make sure to save permalinks.

    It also looks like you are using a custom post type for your podcasts. By default, custom post types are excluded in WordPress queries. You have to add them yourself through code. This snippet may help: https://victorfont.com/add-pages-cpts-wordpress-query/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    August 2, 2017 at 7:51 am #209901
    ashleighk
    Member

    Thanks I will try those suggestions!

    August 8, 2017 at 6:17 pm #210145
    ashleighk
    Member

    I tried the code, replacing portfolio with "podcast" but it still won't work. I'll try to look around more. Thanks!

    August 8, 2017 at 6:51 pm #210148
    ashleighk
    Member

    shoudn't this work?
    //* Use blog categories with podcast episodes
    add_action( 'init', 'ssp_add_categories_to_podcast' );
    function ssp_add_categories_to_podcast () {
    register_taxonomy_for_object_type( 'category', 'podcast' );
    }
    add_action( 'pre_get_posts', 'ssp_add_podcast_to_category_archives' );
    function ssp_add_podcast_to_category_archives( $query ){

    if( is_admin() ) {
    return;
    }

    if( $query->is_tax('category') ) {
    $query->set('post_type', array( 'post', 'podcast' ) );
    }

    }

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2023 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