• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Equalize Digital Home

Equalize Digital

Website Accessibility Consulting, Training, and Development

  • My Account
  • Support
  • Checkout
  • Software
    • Accessibility Checker
      • Features: Accessibility Checker
      • Documentation: Accessibility Checker
      • Pricing: Accessibility Checker
    • ArchiveWP
      • Documentation: ArchiveWP
      • Pricing: ArchiveWP
  • Services
    • Accessibility Audits
    • User Testing
    • Accessibility Remediation
    • VPAT & ACR Preparation
    • Accessibility Monitoring
    • Web Accessibility Training
    • Accessibility for Agencies
  • Company
    • About Us
    • Our Team
    • Industry Expertise
    • Accessibility Statement
    • Contact Sales
    • Become An Affiliate
  • Learn
    • Online Courses
    • Accessibility Meetup
    • Articles & Resources
    • Accessibility Craft Podcast
    • Upcoming Events
    • Office Hours
    • Custom Accessibility Training
    • Global Accessibility Awareness Day
  • Contact Sales
  • My Account
  • Support
  • Checkout
Home / ArchiveWP / Documentation / ArchiveWP Shortcodes

ArchiveWP Shortcodes

ArchiveWP registers three front-end shortcodes that mirror the plugin’s blocks. Each shortcode outputs escaped markup and can be combined inside classic templates, block theme patterns, custom PHP, or page builders such as Elementor or Divi.

  • [archivewp_disclaimer] — prints the standard disclaimer wrapper.
  • [archivewp_filters] — renders the archive search and filter form.
  • [archivewp_loop] — outputs the archive results loop (with optional pagination).

For all shortcodes, boolean attributes accept true, false, 1, 0, or their string equivalents; any value that evaluates to false via FILTER_VALIDATE_BOOLEAN is treated as false.

[archivewp_disclaimer]

Functionality

This shortcode outputs the standard archive disclaimer markup.

The shortcode mirrors the block and does not accept arbitrary inner content—change the message through ArchiveWP settings or by filtering edawp_archived_content_message. See developer docs for filtering information.

Attributes

AttributeTypeDefaultDescription
container_idstringedawp-disclaimer-{unique}id for the outer wrapper.
classstringedawp-disclaimerCSS classes applied to the outer wrapper.
additional_classstring''Optional space-separated classes appended to the wrapper.

To constrain the rendered width, add your own class and define the layout in CSS so both the block and shortcode stay in sync.

Legacy attributes such as text, show_title, and title are ignored but tolerated so that older content does not break.

Example

[archivewp_disclaimer additional_class="is-centered"]

Example Screenshot

archive_disclaimer shortcode shown in the Elementor editor.

Programmatic Rendering

\EqualizeDigital\ArchiveWP\Common\ArchiveDisclaimerRenderer::render( [
    'class'     => 'my-custom-disclaimer',
    'style'     => 'max-width:720px;margin-inline:auto;',
] );

Wrap the call in output buffering if you need the markup as a string.

[archivewp_filters]

Functionality

This shortcode outputs the same form used by the Archive Filters block.

Archive Filters form submissions post to the current URL and populate the following query parameters consumed by [archivewp_loop] and archive templates: 

  • edawp_search 
  • edawp_category (comma-separated)
  • category[] (array fallback)
  • post_type_filter[]/edawp_post_type
  • edawp_archive_type
  • and the nonce pair (edawp_filter_nonce)

Attributes

AttributeTypeDefaultDescription
form_idstringedawp-archive-form-shortcode-{unique}id attribute applied to the <form> element.
show_headingboolfalseWhen true, prints a heading before the form.
heading_textstringSearch ArchiveHeading text when show_heading is enabled.
heading_tagstringh2HTML tag for the heading. Output is attribute-escaped.
show_searchbooltrueToggle the keyword search input.
search_field_idstringedawp-search-keyword-{unique}id attribute for the search input.
show_filtersbooltrueToggle the Archive Category checkbox list.
show_post_type_filterbooltrueToggle the original post type filter list.
search_labelstringSearch by KeywordLabel text for the keyword field.
filter_legendstringFilter by Category<legend> text for the category filters.
post_type_legendstringFilter by Content Type<legend> text for the post type filters.
submit_textstringSubmitSubmit button label.
clear_textstringClear FiltersLabel for the “clear filters” link.
reset_button_idstringedawp-reset-filters-{unique}id used by the JavaScript clear/reset behaviour.
visible_filters_limitint20Show this many Archive Category checkboxes before collapsing the remainder behind a “Show More” toggle. Use 0 (or any value < 1) to show all filters.
collapse_on_mobileboolfalseWhen true, wraps the form in an accessible toggle button that collapses filters on small screens.

The shortcode honors existing selections found in the query string and sets a nonce to support Ajax submissions. Hidden inputs ensure the request stays scoped to edawp_archived.

Example

[archivewp_filters show_heading="true" heading_text="Browse the Archive" visible_filters_limit="10"]

Example Screenshot

archivewp_filters shortcode shown in the Elementor editor.

Programmatic rendering

To build the same markup from PHP, call:

\EqualizeDigital\ArchiveWP\Common\ArchiveFilterForm::render( [
    'show_heading' => true,
    'heading_text' => 'Search Archives',
] );

[archivewp_loop]

Functionality

This shortcode lists archived posts using the current request’s filters.

The shortcode respects edawp_search, edawp_category (comma-separated), category[], post_type_filter[]/edawp_post_type, edawp_archive_type, and paged query parameters. Combine it with [archivewp_filters] or pass attributes directly to control output.

Attributes

AttributeTypeDefaultDescription
posts_per_pageint10Number of archived posts to fetch per page.
container_idstringedawp-archive-results-shortcode-{unique}id applied to the results <ul>.
pagination_showbooltrueWhen true, outputs pagination markup plus data attributes consumed by the front-end script.
pagination_idstringedawp-pagination-shortcode-{unique}id for the pagination container.
pagination_prev_textstring« PreviousPrevious-link label.
pagination_next_textstringNext »Next-link label.
no_posts_messagestringNo archived content found matching your criteria.Message displayed when the query returns no results.
post_show_imagebooltrueShow the featured image when one exists.
post_image_sizestringthumbnailImage size passed to get_the_post_thumbnail().
post_heading_tagstringh3Heading tag for entry titles (normalized to a safe heading element).
post_show_post_typeboolfalseReserved attribute; the current renderer ignores it.
post_show_archive_datebooltrueLegacy master toggle for the date row.
post_show_published_dateboolinherits post_show_archive_dateDisplay the original published date.
post_show_archived_dateboolinherits post_show_archive_dateDisplay the archive date (from _edawp_archived_date).
post_show_categorybooltrueShow Archive Category terms. Aliases: show_category, show_categories.
post_show_taxonomiesbooltrueOutput original taxonomy terms captured during archiving.
post_show_excerptbooltrueShow the excerpt/content preview.
excerpt_word_lengthint55Legacy alias for post_excerpt_word_count; respected when provided.
post_excerpt_word_countint55Word count limit applied to generated excerpts.
post_show_read_more_linkbooltrueShow the “Read More” link.
post_read_more_textstringRead MoreLink text (HTML tags are stripped).
post_read_more_sr_textstringabout %sScreen reader suffix appended to the link (receives the post title).
post_wrapper_tagstringliHTML tag used for each list item (normalized to a safe tag).
post_wrapper_classstringedawp-archive-postCSS class applied to each wrapper element.

All attributes are sanitized before output. Pagination uses WordPress’ native paging; ensure the shortcode sits on a page that supports pagination (e.g., an archive page or a page with the paged query var).

Example

[archivewp_loop posts_per_page="12" post_show_taxonomies="false" post_show_excerpt="false"]

Example Screenshot

archivewp_loop shortcode shown in the Elementor Editor

Programmatic rendering

For full control in PHP, query archived posts yourself and hand the results to the renderer:

$query = new \WP_Query( [
    'post_type'      => 'edawp_archived',
    'posts_per_page' => 6,
] );

\EqualizeDigital\ArchiveWP\Common\ArchivePostRenderer::render_list( $query, [
    'post_show_taxonomies' => false,
] );

Primary Sidebar

ArchiveWP: Take control of your legacy content. Buy ArchiveWP Today.

Starter guide

  • Downloading and Installing ArchiveWP
  • How to Activate Your License Key
  • First-Time Configuration
  • ArchiveWP Settings
  • ArchiveWP Blocks
  • ArchiveWP Shortcodes

General Usage

  • How to Archive a Post
  • How to Archive Posts in Bulk
  • How to Control Which Taxonomy Terms Persist when Posts are Archived
  • How to Restore Archived Posts

FAQs

  • Is ArchiveWP accessible?
  • What languages is ArchiveWP available in?

Developer Docs

  • ArchiveWP Developer Guide
  • ArchiveWP Hooks Reference
  • ArchiveWP WP-CLI Commands

Easier, Faster Accessibility Testing

Equalize Digital Accessibility Checker gives you real-time accessibility feedback in the WordPress editor. Learn accessibility and make fixes earlier in the dev and content creation process. Full-site accessibility scanning without the per page fees.

Get Accessibility Checker

Footer

Equalize Digital Websites for Everyone

Your WordPress accessibility team. Accessibility plugins, rapid audits, and consulting to help you make your website usable by people of all abilities.

  • Facebook
  • GitHub
  • LinkedIn
  • Twitter
  • YouTube

Company

  • About Equalize Digital
  • WordPress Accessibility Meetup
  • Accessibility Statement
  • Blog
  • Events
  • Contact Us

Services

  • Accessibility Audits
  • User Testing
  • Remediation
  • Ongoing Monitoring
  • VPAT & ACR Preparation
  • Accessibility Training
  • For Agencies
  • Website Development

Accessibility Checker

  • Features
  • Pricing
  • Documentation
  • How to Get Support
  • My Account
  • Affiliate Dashboard
  • Become an Affiliate

© 2025 Equalize Digital · Privacy Policy · Terms of Service · Software Terms & Refund Policy

International Association of Accessibility Professionals member