Product category display in tabs
Product category display in tabs
Product category display in tabs
It is possible to display related posts from same category as the current post?
Why are my newly added categories not showing up when creating a post?
get_post_thumbnail return featured image for post. in order to get a thumbnail of the category, you need to fetch it through term meta. global $wp_query; $cat = $wp_query->get_queried_object(); $thumbnail_id = get_term_meta( $cat->term_id, ‘thumbnail_id’, true ); $image = wp_get_attachment_url( $thumbnail_id ); on the product page, since there can be multiple terms for a single product, you … Read more
Problem with pagination block in Gutenberg
how to style show_count in wp_list_categories()
remove url from categories
If you’re using the default category and post_tag taxonomies for your portfolio posts, then have a look at get_the_tags() and get_the_category(). These will return arrays of tags and categories for the current post. Pass post ID as parameter to the functions, when using outside the Loop. If on the other hand you have custom taxonomies, … Read more
Placing category specific banner/html at top of respective category pages
Conditional widget for theme template file