How to use the WordPress Archive using Awesome Enterprise

Archive pages are generated to organize a list of posts under a specific post type, category, author, date or tag. For example, a blog is a great illustration of the WordPress archive page.
So the question is how do we implement this using Awesome Enterprise?
Let’s start by creating a new module in Awesome Core called archive-content-layout. Once this module is created in Core, now we can use any specific post type, category, author, date or tag to display accordingly.
For eg. If on single blog page we have the name of the Author or Date displayed and want to sort the blog list by author or date, archive-content-layout handles this for us.

  •<name of author >
  •< date >
  •< category name >

Below example demonstrate the same.
To show the respective Archive Title we can use the below syntax

Also Awesome Enterprise provides a very easy functionality to get the list of posts irrespective of archive type.

Lets say for some reason you want to have posts of a particular type this is how we can achieve it.
Create a new module in Awesome Core called <type>-archive-content-layout where type can be anything you want to show.
eg. You want to show author specific posts, you can simply create a module author-archive-content-layout.
Below are the available types where we can create modules as per your requirements.

  • Post Type
    • You can create archive based upon post_type as shown below
    • eg. post-archive-content-layout
      where post is post_type.
    • Available Global Variable:
  • Author
    • You can show posts of authors as shown below
    • eg. author-archive-content-layout
    • Available Global Variable:
  • Category
    • You can create archive based upon category as shown below
    • eg. mens-archive-content-layout
      where mens is category slug
    • Available Global Variable:
  • Taxonomy or Tag
    • You can create archive based upon taxonomy/tag as shown below
    • eg. location-archive-content-layout
      where location is taxonomy name or tag
    • Available Global Variable:
Updated on Jun 19, 2021