This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Archivist – Custom Archive Templates


Quick Start

The plugin assumes your articles are well categorized.
To display the archive, use the shortcode anywhere in a page or article.

[archivist category="kitten"]
[archivist tag="kitten"]

Replace “kitten” with your category/tag. Watch out, we need the slug here.
That’s the name without capital letters and spaces.


You can specify a custom template to display the archive elements.
Go to Settings > Archivist for plugin preferences.
Use HTML and any of the following template placeholders.

  • %TITLE% – The post title.
  • %PERMALINK% – The post permalink.
  • %AUTHOR% – The post author.
  • %CATEGORIES% – The post categories as unordered list.
  • %CATEGORIES|...% – The post categories with a custom separator. Example: %CATEGORIES|, %
  • %TAGS% – The post tags with default separator.
  • %TAGS|...% – The post tags with a custom separator. Example: %TAGS|, %
  • %EXCERPT% – The post excerpt.
  • %POST_META|...% – Any post meta. Example: %POST_META|duration%.
  • %POST_META|...|...% – Any post meta list, separated by custom HTML. Example: %POST_META|guest|<br>%
  • %DATE% – The post date with default format.
  • %DATE|...% – The post date with custom format. Example: %DATE|Y/m/d%
  • %POST_THUMBNAIL|...x...% – The post thumbnail with certain dimensions. Example: %POST_THUMBNAIL|75x75%
  • %COMMENTS% – The post comment count.
  • %ACF|field_name% – Display ACF field. Uses the get_field() function.

You can add your own placeholders:

add_filter( 'archivist_template_render', function( $template, $post ) {
    // modify $template
    return $template;
}, 10, 2 );


If you have many entries, you may prefer to paginate. The archivist comes with asynchronous pagination built-in. Use the pagination parameter in the shortcode to activate it. Its value is the amount of items you want to display per page.

[archivist category="kitten" pagination="10"]

Pagination controls are displayed both on top and at the bottom of the archive. You can customize this by setting controls to top or bottom.

[archivist category="kitten" pagination="10" controls="top"]

Filter by Query

Are you feeling bold? Is filtering by category or archive not satisfying you? Read on, I’ve got a challenge for you.
WordPress uses a certain query syntax to define the so called loop which is used to display the archive.
You can find the complete documentation at
and you can take advantage of every single parameter or combination of parameters listed there. Some examples:

[archivist query="year=1984&author_name=gorwell"]

Lists all entries from the year 1984 by the author with user_nicename gorwell.

[archivist query="tag=straw+mask&post_status=private&orderby=comment_count&order=DESC"]

Lists all entries marked with post status private which are tagged with both straw and mask, ordered by the amount of comments in a descending order.

Using multiple Templates

When you install the plugin, there is just one templated called “default”.
If you don’t specify a specific template in the shortcode, this one will be used.
Therefore the following two shortcodes yield identical results.

[archivist category="kitten"]
[archivist category="kitten" template="default"]

You can add as many templates as you like. Think twice before deleting one. If it’s still in use, the archive can’t be displayed.


  • The Admin Interface
  • Example Archive


  1. Upload the archivist directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place [archivist category="kitten"] in your archive post or page


10 de Diciembre, 2016
This plugin worked great on site here I wanted a simple lists of all posts in a category, but sorted by title as well as another one sorted by a post meta field. I am glad I did not start writing custom code! The ability to edit my own templates made it very flexible for my display. The one addition I would like is to maybe be able to list terms from a custom taxonomy
3 de Septiembre, 2016
This plugin is absolutely great. It is simple to use, yet powerful. It allows you to make your own templates for multiple purposes... For me it's indispensable.
Read all 10 reviews

Contributors & Developers

“Archivist – Custom Archive Templates” is open source software. The following people have contributed to this plugin.




  • fix security issues (XSS)


  • fix PHP 8 compatibility
  • fix security issues


  • add Chinese language files


  • fix use of PHP 5.4 syntax


  • fix: define own ajaxurl in case the global one is not defined


  • fix: set jQuery as dependency


  • New Feature: Pagination. Use pagination="10" as shortcode parameter to paginate your archive with 10 items per page. See readme for more details.
  • New Feature: Support for ACF Fields. %ACF|field_name% – Display ACF field. Uses the get_field() function.

This update is sponsored by Light Aware.


  • Enhancement: Use Ace editor with HTML and CSS syntax highlighting
  • Fix: PHP warnings
  • Fix: Some links in about box


  • Hotfix: Typo, sorry


  • Enhancement: display_by_query: default to displaying all posts (like tag and category display)
  • Feature: enable shortcodes in templates


  • hotfix: forgot to deploy a new file to svn


  • restore PHP 5.2 backwards compatibility


  • fix default thumb bug
  • add support for post meta lists
  • add plugin repo banner


  • fix typo (prevented custom css from being used)


  • fix bug using query parameter in shortcode

1.3.4 & 1.3.5

  • minor capability fix


  • generic backslash fix


  • you can now set any template as the default
  • current default template more easily recognizable (bold font & marked in template chooser)
  • add internal version number so update and compatibility scripts get run only when needed
  • Bugfixes (Settings Validation, backslashes, …)


  • fix backward compatibility issue


  • templates can be renamed
  • “default” template can be renamed, too
  • when you delete the last template, the “edit template” tab is deactivated until you create a new one
  • some bug fixes

1.2.2, 1.2.3

  • Hotfixes


  • add missing textdomains


  • allow for multiple templates
  • add an examples block in the sidebar


  • add fallback thumbnail
  • new options page


  • fix typos


  • change name to Archivist – “Custom Archive Templates”
  • change shortcode


  • It’s alive!