Help with displaying all post categories on my blog page?

I realize this is likely a very basic question, and I apologize for that. I’m very new and am trying to teach myself everything (with a tremendous help from Adam Lowe’s youtube videos).

I’m trying to display all of the parent categories for my blog posts on the home.php page. The following code, however, will only display the categories for the posts appearing on that page. The page is set up to display 6 posts. If I click on the next page, I will see brand new categories at the top for the categories of the posts appearing on that page. I want all categories to display, but can’t figure it out.

Here’s the relevant code for the category buttons I’m trying to create at the top of the page. It’s wrapped in an anchor, which I replaced with two dots for the purpose of displaying it without the formatting getting screwed up:

<… href=“#” class=“btn btn-outline-primary” data-pg-name=“Category Button” cms-tags=“category” cms-tags-display=“this”>{term_name}</…>

I used the “Post Tags & Categories - Smart” wordpress action to create this.


Try to use “Site Tags & Categories” instead of “Post Tags & Categories”.

Best regards,

1 Like