I can’t comment yet, but I can answer – I think your problem may be that you’ve declared your $terms
variable twice in your code, within your loop:
<?php $terms = get_the_terms( $post->id, 'knowledgebase_types' ); ?>
and
<?php $terms = get_the_terms( $post->post_id, 'knowledgebase_topics' );?>
Though some more information about what result you are actually seeing could help too – does the “topic” div show up empty, or with errors?
Related Posts:
- Yoast SEO breadcrumbs: how to create a filter that uses the url slug for breadcrumb titles
- Is it possible to create slug on homepage and how?
- How to get a taxonomy term name by the slug?
- Is sanitize_title enough to generate post slugs?
- Is there a maximum slug length?
- How to check if a slug exists?
- Can I use a number for a post/page slug?
- Force post slug to be auto generated from title on save
- Custom Post Types, slug, archive and SEO plugins
- How to rewrite slug of custom post type archive page
- How to get full slug, including all parent pages
- Remove Slug from Custom Post Type
- Add warning to edit slug/permalink button on editor screen.
- How to prevent duplicate slugs for wp_insert_post?
- How to remove certain words from url slug
- How to generate slugs?
- {Check Theme Plugin} text domain does not match the theme’s slug
- I use same slug name for category and page
- Possible to create a new post and have the Title and Slug automatically use the post’s ID?
- Display page over category archive
- Convert post name into post ID
- WP appending -2 to the end of my slug. Where are the originals stored so I can delete them?
- Inserting Post Using wp_insert_post. How to Fill Yoast Plugin SEO Fields
- add post content in meta description in yoast
- SEO meta description and title tag Yoast SEO
- Function to list all post slugs for every post in my WP database?
- Add parent template name to body class filter when visiting subpage or single post
- How I Can Use The Get Value as A Slug
- Set taxonomy slug as taxonomy title
- custom slug always ends in “-2”
- Show all wp_get_post_terms slugs
- Hook on slug generator
- How can I automatically set a post slug based on the post title during post publish?
- Do post_names have to be unique?
- Can I change the contents of a description meta tag generated by Yoast?
- slug: should I use latin characters only?
- How to manage same slug posts suffix method?
- Set different Canonical url programmatically for every post
- Make wp_list_pages print slugs instead of titles
- Stripping unicode characters out of slug
- alt tags of the images are not saving/emtpy
- Remove slugs of old and unused custom post type
- What function removes apostrophes when making a slug?
- robots.txt Not Updating
- WordPress not adding -2 to slugs when saving post as draft
- How to solve Robots.txt problem with WordPress fresh install?
- WordPress plugin for nicer looking slugs? Have multiple pages named the same but they get different slugs
- Yoast SEO: title tags are repeating my website name and slogan [closed]
- Overwrite YoastSEO meta-tags with another page’s [closed]
- Getting error when trying to implement site-wide breadcrumbs in Twentytwentyone Theme [closed]
- How to ensure that a landing page created with WordPress does not enter the sitemap?
- Yoast SEO plugin “could detect no serious SEO problems” on dashboard
- Memberpress custom fields – filtering content
- WordPress Sitemap including pages that aren’t there
- Duplicate category slugs from pages and posts
- How to Change The Title in WordPress For SEO
- How to show “slug” in admin column?
- SEO optimization gone not so well
- WordPress thinks my custom taxonomy pages are search pages #seo
- Change post slug but keep old one
- Why does post-slug not get saved for drafts?
- Remove custom post slug and add category to custom post type
- WordPress Reserved Terms, any workaround?
- How to rewrite title- and meta-description templates for page templates in Yoast Plugin [closed]
- Facebook og:image issues after https change [closed]
- ASCII titles with Yoast SEO plugin
- Show Sitename on Yoast SEO Title tag [closed]
- Help in using SEO Plugins: SEO Ultimate And Yoast SEO Plugin
- Retrieve a value from Yoast SEO to use to set a default twitter card image honoring overrides
- Yoast SEO settings unavailable in an archive page from wordpress plugin
- How to remove Date from Meta Description on SERP?
- Slug Taken, Cant Find Which Page
- Yoast Force Rewrite Crashed Site [closed]
- Embed sitemap in a page
- How to get a page slug in WordPress?
- charset problem in wordpress because of nginx config
- A way to export slug as meta tag
- Adding language based URL structure
- Yoast taking over my WordPress title tag [closed]
- Yoast primary category query modification
- WordPress yoast seo plugin – parse snippet var in meta description
- Adding a H1 Tag to Post Tags automatically, but hide the tag? (Same for Category)
- How to remove WordPress Virtual Robots.txt that keeps overriding my root robots.txt? [closed]
- Display Terms Comma separated and Hyperlinked
- what to do when a Theme uses a custom post type slug that conflicts with a plugin?
- Wrong slug on blog page
- Can’t remove slug in url
- Genesis / custom template page / setting the page title and meta desc
- How do I create custom tags for WordPress SEO? [closed]
- Set a custom post type’s title and slug to match the current date
- One Page or Post, n Slugs
- Yoast SEO plugin – Sitemap links greyed out & page priority
- add slug of child(ren) to li using wp_list_pages
- Category Slugs = 404s?
- Setting up robots.txt with Yoast’s Seo plugin
- Add parameters to Yoast SEO plugin schema in functions.php [closed]
- Workaround for og:image unsupported webp image type, Yoast SEO?
- Page Slug Won’t Change – Can’t Edit Archive Page With Slug or Reassign Slug
- custom wordpress theme and yoast seo injecting text in body
- How to prevent post_name from incrementing in wp_insert_post?