JS Archive List

JS Archive List

توسط

This plugin provides a widget and a filter to display a collapsible archive list in your sidebar or posts using the JS JS library.

Features

  1. Support for Gutenberg blocks. Add it to any FSE theme or Gutenberg compatible theme.
  2. Display a collapsed list of your archives to reduce space.
  3. Uses vanilla JS to add effects and to be compatible with all browsers.
  4. Select your expand/collapse symbol and date format.
  5. Support for archive filters.
  6. Auto expands current/select year from posts.
  7. Select the categories to exclude
  8. Multiple instances support.
  9. Shortcode support [JsArchiveList]
  10. Generates valid HTML code.
  11. Supports multiple languages.
  12. Compatible with most JS cache and minify plugins.
  13. And more to come…

Configuration

  • Title: title of the widget.
  • Trigger Symbol: characters to be displayed as bullet.
  • Effect: Effect to use.
  • Month Format: month’s display format of the month.
  • Expand: when to expand the content of the list.
  • Hide years from before: older years will be hidden under a link. To save space in the page on old sites.
  • Show days inside month list: group posts by day.
  • Show number of posts: display how many post are published in the year or in the month.
  • Show only posts from selected category: show only posts from the selected category when visiting a category page.
  • Only expand/reduce by clicking the symbol: select if animations start when click the link or just the bullet.
  • Open links in a new tab: opens archive and post links in a new browser tab/window.
  • Only expand one at the same time: select if you want to have only one expanded at the same time.
  • Show posts under months: show post’s title under months.
  • Show post date next to post title: show post’s date next to post title.
  • Sort posts by: select how to sort the posts under months.
  • Include or Exclude categories: Select the categories to include or exclude.
  1. Make a directory js-archive-list-widget under /wp-content/plugins/
  2. Upload all downloaded files to /wp-content/plugins/js-archive-list-widget/
  3. Activate plugin at the plugins section.
  4. Go to Presentation -> Widgets and drag the JS Archive List to your sidebar and configure it, if you want to display it inside a post then write [JSArchiveList] at the location where it will be shown and save it.

سوالات متداول

Why there are 2 widgets?

Since version 6.0 the widget was migrated to a Gutenberg block. So there will be a Gutenberg block with the most modern code and compatibility and a legacy version that is 100% made in PHP to keep compatibility with older installations.

Why this plugin is not working?

By support experience, like 99% of problems are due to:

  • There’s a Javascript error caused by other plugin, and it stops any further code execution, check your browser’s logs to find the problem and deactivate the conflict plugin.
  • Your template doesn’t have a wp_footer() function, this plugin requires this function to load JS code at the end of the website to improve speed.
I’m using custom permalinks, How can I change the links?

Currently, there’s no function in WP API for getting link for date archives when using custom permalinks. So, you’ll need to modify/hack the source code to support your custom link structure, you can do this by changing the lines where I call get_month_link and get_year_link.

How can I exclude some categories from navigation?

This plugin only shows the posts from included/excluded categories. It does not remove them from the navigation. If you want to do it you have to install a 3rd party plugin like Ultimate Category Excluder or Simple Exclude Categories

How I can send you a translation?

Send me the translated .mo file to migueluseche(a)skatox.com and indicate the language, I can read english or spanish, so please write me on these languages.

Can I use images as bullets or trigger symbols?

Yes, select ‘Empty Space’ as trigger symbol and Save, then you can add any custom background using CSS,
just play with the widget’s classes: .jaw_symbol, .jaw_year, .jaw_month.

Can I show this list inside posts?

Yes, just add the JS Archive List block or add a shortcode block and write [JsArchiveList] anywhere inside a post
or page’s contest and it will be replaced for the archive list when rendering the content. You can add the following
parameters to change its behavior:

  1. showcount ( boolean ): select if you want to show the count post inside that month/year.
  2. showpost ( boolean ): show post’s titles under months.
  3. expand (“none”, “never”, “expand”): never expand by default, current year only and always expand.
  4. month_format (“short”, “full”, “number”): the format of the date.
  5. ex_sym: the expansion symbol.
  6. con_sym: the collapse symbol.
  7. only_sym_link: only expand/collapse when clicking the bullet.
  8. effect (“”, “slide”, “fade”): the JS effect to implement.
  9. exclude: IDs (comma separated) of the categories to exclude.
  10. type: ID of the type of the posts to show, this is if you’re using custom type posts. By default will show posts.

So for example:

[JsArchiveList month_format=number showpost=1 showcount=1 ex_sym=+ con_sym=- effect=slide type=page]

Will show a widget with months as numbers, show posts under months and their count, the symbols are + and – and the effect is fadeIn. You can check source code for more information.

How I contribute to this plugin?

By using it, recommending it to other users, giving it 5 starts at plugin’s WordPress page, suggesting features or coding new features and finally by DONATING using plugin’s website’s donate link.

How can I add multiples instances?

Since 2.0 you can add as many instances as you want, but there’s another way to do it, just add a new Text widget only with the shortcode [JSArchiveList] then it will have a new copy of the widget.

Can I have different instances with different configuration?

Since 2.0 it’s possible. Each instance has its own configuration. Shortcode widgets are controlled by shortcode attributes.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
6.3.1 557 کیلوبایت -
دانلود
×
★★★★★
★★★★★
4.8 /5 (45 نظر)

قیمت:

رایگان

نگارش

6.3.1

آخرین انتشار

12 اردیبهشت 1405

آخرین بروزرسانی

4 ماه پیش

نصب های فعال

3,000+

نگارش وردپرس

وردپرس 4.7+

تست شده از نسخه

وردپرس 6.9.4

نگارش PHP

PHP 7.4+

نسخه ها

1 نسخه