Community Forums › Forums › Archived Forums › Design Tips and Tricks › Tags/Categories not working?
Tagged: categories, meta, tags
- This topic has 9 replies, 3 voices, and was last updated 7 years, 8 months ago by
ashleighk.
-
AuthorPosts
-
July 31, 2017 at 1:46 pm #209771
ashleighk
MemberSorry 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 #209776paulag01
MemberWhere 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 #209781ashleighk
MemberSorry 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 #209784paulag01
MemberI 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 #209785ashleighk
MemberSorry. 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 #209823paulag01
MemberThat 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 #209827Victor Font
ModeratorI 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 #209901ashleighk
MemberThanks I will try those suggestions!
August 8, 2017 at 6:17 pm #210145ashleighk
MemberI 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 #210148ashleighk
Membershoudn'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' ) );
}}
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.