Appearance
Notification Dynamic Tags
The Notification Dynamic Tags add new dynamic tag properties for accessing user notification and message counts. Display unread counts anywhere on your site using Voxel’s dynamic data system.
Overview
These dynamic tags extend Voxel’s user data properties to include notification and message counts. Use them in templates, widgets, or anywhere dynamic tags are supported to display personalized notification information.
Key Features
- Access unread notification count via dynamic tags
- Access unread message count via dynamic tags
- Works with current user data
- Use in any element supporting dynamic content
- Combine with conditional logic for dynamic displays
Available Tags
| Tag | Description | Returns |
|---|---|---|
@user(unread_notifications) | Number of unread notifications for the current user | Number |
@user(unread_messages) | Number of unread messages for the current user | Number |
| Tag | Description | Returns |
|---|---|---|
@author(unread_notifications) | Number of unread notifications for the post author | Number |
@author(unread_messages) | Number of unread messages for the post author | Number |
Setup Instructions
Step 1: Enable the Function
- Navigate to Voxel Toolkit → Dynamic Tags in your WordPress admin
- Find Notification Tags in the list
- Toggle the switch to enable
- Click Save Changes
Step 2: Use the Tags
Once enabled, use the tags in any element that supports dynamic content, such as:
- Elementor text widgets with dynamic tags
- Voxel template buttons and links
- Menu items with dynamic labels
- Conditional visibility rules
Use Cases
Custom Notification Badges
Create custom notification badges in your header or navigation that match your site’s design.
Dashboard Widgets
Display notification counts on user dashboard pages to keep users informed.
Conditional Navigation
Show or highlight menu items based on whether the user has unread notifications.
Welcome Messages
Include notification counts in personalized welcome messages for logged-in users.
Troubleshooting
Tags Not Showing Data
- Verify the user is logged in (tags return 0 for guests)
- Check that the Notification Tags function is enabled
- Ensure the tag syntax is correct
- Clear any object caches
Count Seems Incorrect
- Counts reflect the Voxel notification system data
- Check user meta for voxel:notifications and voxel:dms
- Mark notifications as read to update the count
Tags Not Available
- Ensure Voxel Toolkit is active
- Tags register under the @user group
- Check that dynamic tags are supported in the element you’re using

