Documentation / Tutorials / Awesome Enterprise

How to use the WordPress Archive using Awesome Enterprise

/ Awesome Enterprise / 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.

  • www.example.com/author/<name of author >
  • www.example.com/< date >
  • www.example.com/category/< 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.

 

Categories
Most Popular