Nextjs Blog Template
WordPress Configuration

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:

    Custom theme
    Custom theme

  • This will dynamically visible to you site:

    Custom theme
    Custom theme

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:

    Custom theme

  • This will dynamically visible to you site:

    Custom theme

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 the category-slug from you wordpress site.:

    Custom theme

  • 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:

    Custom theme


  • Another category section in your site:

    Custom theme