Post Archive

Creates a custom feed that displays general posts created on the website. Please note that the post archive does not use News or Events posts.

  • Use: An area to help users easily search, filter, and browse posts within the website, such as academic job postings and faculty members’ publications.
  • Location: Can be used on all pages

Default shortcode

[archive-posts title="Archive Post" taxonomy="category" taxterm="" search="true" limit="-1" order="DESC" orderby="date" noposts="" markup="" show_content="true" display="list" only_list="false"]

Parameters

display="" -- sets type of archive; "list" for list view and "grid" for grid view 
markup="" -- styling for post archive; "ap-list" for lists and "ap-grid" for grids 
noposts="" -- Displays custom message when archive is empty; default message is "Sorry, there are no posts available at this time." 
only_list="" -- toggle "Displaying results x of x" text; "true" will NOT display feature and "false" will display this feature.
order="" -- Set post archive order; ASC for ascending or DESC for descending 
orderby="" -- sets method of ordering post archive; "title", "date" and "rand"
search="" -- displays the search bar; "false" to hide search bar and "true" to display search bar 
show_content="" -- display snippet of content on post archive; "false" to hide content snippet or "true" to display content snippet 
title="" -- the title of the post archive 
taxonomy="" -- Filtering method for post archive; method is set to "category" by default  
taxterm="" -- Specific taxonomy term name (eg. "job-opportunites" for categories)
viewmore="" -- Set a limit for the number of posts to be displayed before clicking a "View More" button

*Parameters italicized are optional

Additional notes

You can add a dropdown menu to the post archive as filters by creating parent-child taxonomies.

Step 1: Set up categories

  1. Go your site Dashboard
  2. Go to Posts > Categories
  3. Create three levels of parent-child taxonomies; the last 2 levels will correspond to dropdown filters on the post archive. Example:
    • Parent Category: Publications
      • Child Category 1a (drop-down menu 1): Topic
        • Child Category 2a (listed item under drop-down menu 1): Italian Studies
      • Child Category 1b (drop-down menu 2): Type
        • Child Category 2a (listed item under drop-down menu 2): Journals

Step 2: Edit the shortcode

In post archive shortcode, assign the Parent Category in the taxterm parameter:

  1. Go to edit your page
  2. In post archive shortcode, assign the Parent Category in the taxterm parameter
    Example: [archive-posts taxonomy="category" taxterm="publications" display="grid" search="true" markup="ap-grid" show_content="true" order="DESC" orderby="date" title="Publications" item_label="publications"]

Step 3: Assign posts to the applicable categories

To assign a Post to your archive in the post archive, select the parent category as well as the specific child categories

  1. Go to edit a post
  2. Under the setting Categories, select the:
    • Parent Category (e.g: "Publications")
    • Child Categories (e.g: "Topic, Italian Studies, Type, Journals)

On this page