The ([highlite_list])
shortcode in Highlite Pro provides users with a powerful personal dashboard to manage all their highlights across the site. It offers search, sorting, download, and print functionalities, all in a clean tabular interface.
๐งฉ What This Shortcode Does #
- Displays a table of all posts where the logged-in user has saved highlights.
- Lists:
- The post title (linked to original content)
- The date of last highlight
- Action icons to download (DOCX) or print the highlights.
- Includes a search/filter bar, sorting dropdowns, and pagination.
โ ๏ธ Only available to logged-in users. Guests will see a login prompt.
๐ฆ How to Use #
โ Adding the Shortcode #
To show the dashboard on any post or page, insert:
[highlite_list]
You can insert it:
- In the WordPress block editor (Gutenberg) using a Shortcode block
- In a Classic Editor via the standard editor area
- Inside any HTML widget or custom page template
๐ Filter Options #
Displayed above the highlight table, these filters help users quickly find what they need:
- Search Bar: Looks through both post titles and highlighted texts.
- Sort By:
- Date (default)
- Title
- Order:
- Descending (latest first)
- Ascending
๐ง Filter inputs use
GET
parameters, so URLs can be bookmarked or shared.
๐ Table View #
The table displays:
Post Title | Last Highlighted On | Actions |
---|---|---|
Clickable title | Formatted date | DOCX ๐ฅ + Print ๐จ๏ธ |
- Post Title: Linked to the original post/page.
- Date: Fetched from the
user_highlight_dates_
meta. - Actions:
- ๐จ๏ธ Print โ Opens a print-friendly HTML version.
- ๐ฅ Download โ Triggers a DOCX file download.
๐ Pagination #
- Displays 10 items per page.
- Page navigation appears at the bottom.
- Pagination preserves search and sorting query strings.
๐ก๏ธ Security & Access Control #
- All actions are nonce-protected to prevent unauthorized access.
- Only the current logged-in user can:
- View their highlights
- Download/print their saved content
๐งช Example Use Case #
If a user highlights notes across 15 blog posts, this dashboard becomes their personal study/reading center, allowing them to:
- Revisit the exact posts
- Re-download key excerpts
- Edit/remove older highlights from the original post frontend