LanceDesk Smart Dynamic Accordion for Elementor
Secure, modular Elementor smart dynamic accordion widget for WordPress.
by Lance Desk · github.com/lancedesk/lancedesk-smart-dynamic-accordion · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/lancedesk/lancedesk-smart-dynamic-accordion/archive/refs/heads/main.zipSecure, modular, and Elementor-native accordion widget for WordPress with both manual repeater content and smart dynamic post-driven rendering.
Highlights
- Manual accordion items with title + rich content editor.
- Dynamic mode from public post types.
- Advanced query controls:
- post type, count, order, order by, offset
- include/exclude post IDs
- optional category and tag filters with AND/OR relation
- advanced custom taxonomy slug + terms (slug or term ID)
- Load more for limited dynamic lists:
- show-more button with remaining count (
%dplaceholder) - infinite scroll mode
- full Elementor style controls for the load-more button
- show-more button with remaining count (
- Dynamic field mapping:
- title from post title or custom field
- content from post content, excerpt, or custom field
- meta value type auto detection (text/html/image URL)
- Elementor-native controls:
- expand/collapse icons + icon position
- normal/hover/active state colors
- typography, spacing, optional dividers, title/content padding, content background
- Optional dynamic "Read more" links:
- custom label
- open in new tab
- nofollow
- Optional FAQ schema output with guardrails:
- minimum valid Q&A item count
- optional requirement that title includes
?
Security and Quality
- Namespaced architecture (
LanceDesk\HBDA) with unique prefix (ldrj_hbda_). - Sanitization and escaping across controls and rendering.
- Optimized dynamic queries (
no_found_rows, reduced cache overhead where appropriate). - Accessible accordion markup (
aria-expanded,aria-controls, keyboard-friendly button triggers).
Installation
- Copy this plugin folder to
wp-content/plugins/. - Activate LanceDesk Smart Dynamic Accordion for Elementor in WordPress.
- Make sure Elementor is installed and active.
- Open Elementor and search for Smart Dynamic Accordion in the Lance Desk category.
Quick Usage
Manual mode
- Set
SourcetoManual Items. - Add repeater items.
- Set icons and style controls to match your design.
Dynamic mode
- Set
SourcetoDynamic from Posts. - Choose post type and query filters.
- Configure field mapping (title/content/meta).
- Optionally enable
Read MoreandFAQ Schema.
Project Structure
dynamic-accordion/
├─ assets/
│ ├─ css/ldrj-hbda-accordion.css
│ └─ js/ldrj-hbda-accordion.js
├─ includes/
│ ├─ class-ldrj-hbda-plugin.php
│ ├─ class-ldrj-hbda-query.php
│ ├─ class-ldrj-hbda-ajax.php
│ └─ widgets/class-ldrj-hbda-smart-accordion-widget.php
├─ lancedesk-smart-dynamic-accordion.php
├─ readme.txt
├─ README.md
├─ uninstall.php
└─ LICENSE
Roadmap
- Dynamic tag support for richer Elementor integrations.
- Additional content templates for post cards/media blocks inside accordion bodies.
- Comprehensive unit and integration tests.
Contributing
Contributions are welcome. Please review CONTRIBUTING.md and use the issue/PR templates in .github/.
License
MIT — see LICENSE.
If you plan to distribute via WordPress.org directory, consider switching to GPL-compatible licensing.
Maintainer
Lance Desk
Lance Desk