JS Archive List Widget Shortcode

Below, you’ll find a detailed guide on how to add the JS Archive List Widget Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the JS Archive List Widget Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the JS Archive List Widget Plugin and the shortcodes it provides:

Plugin Icon
JS Archive List Widget

"JS Archive List Widget is a dynamic WordPress plugin that enhances your website. It uses jQuery to create a user-friendly, interactive archive list in your sidebar or widget area."

★★★★☆ (44) Active Installs: 4000+ Tested with: 6.2.3 PHP Version: false
Included Shortcodes:
  • [jQueryArchiveList]

JS Archive List Widget [jQueryArchiveList] Shortcode

The jQueryArchiveList shortcode is a functional element of the jquery-archive-list-widget plugin. It filters and configures data based on specific attributes. The shortcode translates database settings to internal configurations, and generates an HTML structure. It utilizes the JQ_Archive_List_DataSource for data sourcing.

Shortcode: [jQueryArchiveList]

Examples and Usage

Basic example – This shortcode displays the jQuery Archive List with default settings. No parameters are needed for this basic usage.

[jQueryArchiveList /]

Advanced examples

Displaying the jQuery Archive List with specific configurations. Here, you can specify various parameters such as ‘show_post_count’, ‘limit’, ‘order_by’, etc. to customize the archive list to your liking.

[jQueryArchiveList show_post_count="true" limit="10" order_by="date" /]

Another advanced example involves using the ‘exclude’ parameter to exclude certain categories from the list. Here, the categories with IDs 5, 15, and 25 are excluded from the archive list.

[jQueryArchiveList exclude="5,15,25" /]

Finally, you can use the ‘format’ parameter to specify the date format of the archive list. This example uses the ‘Y-m-d’ format, which displays the date as ‘Year-Month-Day’.

[jQueryArchiveList format="Y-m-d" /]

PHP Function Code

In case you have difficulties debugging what causing issues with [jQueryArchiveList] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'jQueryArchiveList', [ $self, 'filter' ] );

Shortcode PHP function:

function filter( $attr ) {
		$this->config = shortcode_atts( $this->defaults, $attr );
		Js_Archive_List_Settings::translateDbSettingsToInternal( $this->config );

		$this->data_source = new JQ_Archive_List_DataSource( $this->config, true );

		return $this->build_html();

Code file location:



Now that you’ve learned how to embed the JS Archive List Widget Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.


Leave a Reply

Your email address will not be published. Required fields are marked *