My Team Members Shortcode — v1.0.2
Plugin name
My Team Members Shortcode
Purpose
Provide a read-only viewing experience for trusted Team users:
-
Team Dashboard: sortable table (Title, Artist Name, Medium, Artist Statement, Thumbnail, View).
-
Team Review: secure, full/large artwork preview + metadata.
No scoring or editing—purely view-only.
Roles required
-
Team role:
team(created on activation) withread_private_postsso they can see submitted (Private) entries. -
Admins: always allowed.
-
You can manage Team accounts with Ultimate Member (UM) if you like; PMPro isn’t required for team access but may gate pages (see notes below).
If a team member can’t see items, confirm their role is team (or they otherwise have
read_private_posts) and that entries are private (not draft).
Shortcodes
1) #team_dashboard]
What it does: Read-only table of artworks for team members. Client-side sorting by Artwork Title, Artist Name, Medium.
Attributes
-
category(required) — category slug, e.g.25-artwork-submissions. -
statuses— defaultprivate(allowed:draft,private,publish,pending,future). -
per_page— default20. -
preview_url— default/team-review/(page that contains).You must be logged in to view this page.
-
thumb_size—thumbnail|medium|large|full; defaultmedium. -
show_heading—true|false; defaultfalse(heading hidden by default).
Example
statuses="private"
per_page="20"
preview_url="/team-review/"
thumb_size="medium"]
2) #team_review]
What it does: Read-only preview page for a single post; link comes from the dashboard and includes a secure nonce.
Attributes
-
allow_roles— CSV; defaultteam,administrator,editor. -
image_size—large|full; defaultlarge.
How it’s accessed
-
The View button builds a link like:
/team-review/?post_id=###&ms_nonce=... -
The shortcode verifies:
-
user is logged in and in an allowed role;
-
nonce is valid;
-
if the post is private, the user must have
read_private_posts.
-
Plugin pre-requisites & field/label mapping
Pre-requisites / compatibility
-
Works with the same posts/artworks created via your existing FPS/PMPro flow.
-
PMPro gating: If PMPro restricts pages, whitelist
/team-dashboard/and/team-review/so team users can access them. (This plugin doesn’t add its own PMPro bypass; just whitelist the pages in PMPro.)
Field & label mapping used by the plugin
-
Artwork Title →
post_title(raw title; no “Private:” prefix). -
Artist Name →
post meta: name. -
Email →
post meta: email(shown on the review page). -
Dimensions →
post meta: dimensions(review page). -
Medium →
post_excerpt(fallback:post meta: medium). -
Artist Statement →
post_content(fallback:post meta: artist_comments). -
Image → featured image; if missing, the first attached image.
-
Security → per-post nonce (
ms_nonce, action prefixteam_view_{post_id}), role + capability checks.
Annual rollover: keeping Team pages working
New category each year
Create a new category/slug each year (e.g. 26-artwork-submissions) and only update the dashboard shortcode:
-
Posts → Categories: add “2026 Artwork Submissions”, slug
26-artwork-submissions. -
Update the Team Dashboard page shortcode:
#team_dashboard category="26-artwork-submissions" ...]
-
No change needed for
—it opens whatever post is linked from the dashboard.You must be logged in to view this page.
-
If PMPro is in play, confirm
/team-dashboard/and/team-review/remain whitelisted.