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 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
- Add warning to edit slug/permalink button on editor screen.
- 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?
- SEO meta description and title tag Yoast SEO
- Function to list all post slugs for every post in my WP database?
- How I Can Use The Get Value as A Slug
- custom slug always ends in “-2”
- Show all wp_get_post_terms slugs
- How can I automatically set a post slug based on the post title during post publish?
- 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
- Memberpress custom fields – filtering content
- WordPress Sitemap including pages that aren’t there
- 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?
- How to rewrite title- and meta-description templates for page templates in Yoast Plugin [closed]
- Facebook og:image issues after https change [closed]
- Show Sitename on Yoast SEO Title tag [closed]
- Retrieve a value from Yoast SEO to use to set a default twitter card image honoring overrides
- Slug Taken, Cant Find Which Page
- Yoast Force Rewrite Crashed Site [closed]
- How to get a page slug in WordPress?
- A way to export slug as meta tag
- Adding language based URL structure
- Yoast primary category query modification
- 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
- Set a custom post type’s title and slug to match the current date
- 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
- How to prevent post_name from incrementing in wp_insert_post?
- How can I get wordpress slug without certain phrase? [closed]
- Check for the existence of term slug
- Does anyone know why my SEO and title become one?
- My wordpress local urls is still displayed even moved to live
- Permalink not changing according to post type
- How to ignore GET parameter that’s the same as a CPT slug?
- Show Yoast SEO meta tags in Custom WordPress Templates (Theme)
- SEO Site Title appearing in google search despite not being added
- Make user’s first and last name as user slug
- 301 redirects after changing permalinks
- Robots.txt file not updating
- Default post category overruling %category% setting for posts URL
- 404 errors problem with multilangual permalink pages
- mysterious issue with stop words in urls not working – how can I restore multiple url access?
- Yoast Seo Plugin meta title not showoing [closed]
- Get all terms/slugs – used, not used & in hierarchical order
- How to print partial URL after #? [closed]
- How to Disable UNICODE slug?
- list child pages as slug
- can’t change page slug
- Tagline showing instead of meta description!
- Enabling canonical links to force search engines to go to site.com rather than site.net [closed]
- How to put title slug into content when create a new post?
- Possible to change meta data single quotes to dobule quotes in yoast wordpress seo? [closed]
- Ultimate get current page’s slug function
- seo meta description issue in google search
- How can I make “sanitize_title” affect only one taxonomy?
- How to create extra SUB ARCHIVE for each page?
- Slug is already taken – how do I find the original item
- Duplicate Slugs on multilingual site (with Polylang)