Home › Forums › Support › back button to parent category This topic has 5 replies, 3 voices, and was last updated 5 years, 12 months ago by Tom. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts April 23, 2018 at 2:22 am #557718 arbeni Hey there, it is possible to insert a back button (single post) and return to the parent category? Thanks April 23, 2018 at 9:20 am #558160 LeoStaff Customer Support Hi there, I believe you are looking for breadcrumbs. Check out YoastSEO. Let me know if this helps. April 24, 2018 at 7:46 am #559034 arbeni Thanks for the quick answer. But I just went back to the previous category April 24, 2018 at 8:21 pm #559695 TomLead Developer Lead Developer So this button would be a link to the category that the post belongs to? What if the post has multiple categories? April 24, 2018 at 11:03 pm #559763 arbeni Hey Tom, Yes this button would be a link to the category that the post belongs to. – no post doesn’t have multiple category Thanks April 25, 2018 at 10:04 am #560228 TomLead Developer Lead Developer Try this PHP: add_action( 'generate_after_content', 'tu_add_category_link' ); function tu_add_category_link() { if ( is_single() ) { $category = get_the_category(); $first_category = $category[0]; printf( '<a class="category-button" href="%s">%s</a>', get_category_link( $first_category ), $first_category->name ); } } Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In