WordPress Configuration
Create Post Category
Create your post category from Wordpress and post your blogs for each category, this will dynamically visible to you site with count of each category:
-
Create
Category
from Wordpress:
-
This will dynamically visible to you site:
Create Post Tags
Create your post tags from Wordpress and post your blogs with tags, this will dynamically visible to you site:
-
Create
Tag
from Wordpress:
-
This will dynamically visible to you site:
Dynamic Category Post Section
You can create category and control each post category section from .env
file.
-
First of all, you need to create a specific
Category
from Wordpress and collect thecategory-slug
from you wordpress site.:
-
Now add this
category-slug
for any of your category at.env
file :
# Dynamic Category Slug
NEXT_PUBLIC_FEATURED_CATEGORY="featured"
NEXT_PUBLIC_TRENDING_CATEGORY="technology"
NEXT_PUBLIC_EDITOR_CATEGORY="gadgets"
NEXT_PUBLIC_WEEKLY_CATEGORY="featured"
-
This will dynamically reflect to the category section in your site:
-
Another category section in your site: