Supernova Theme Shortcodes
Table of Contents
This reference lists every shortcode registered by the Supernova theme, alongside its purpose, source location, and available attributes.
[article-grid]
- Defined in:
functions.php
- Purpose: Outputs a paginated grid of standard posts with thumbnail, date, and optional excerpt cards.
- Notes: Supports filtering by author or category and inherits the global
show_property_card_description
option to control excerpts.
Attribute | Default | Description |
---|
count | 16 | Maximum number of posts to show per page. |
columns | 4 | Number of grid columns (used for CSS classing). |
pagination | yes | Set to no to hide the next/previous pagination links. |
class | '' | Extra CSS class appended to the grid container. |
author | '' | Filter posts by author ID. |
category | '' | Filter posts by category slug. |
- Defined in:
functions.php
- Purpose: Prints the 4Property/Acquaint CRM footer signature, current year, agent login link, and the registered
footer-menu
navigation menu.
- Defined in:
functions.php
- Purpose: Outputs a WordPress navigation menu with the theme’s
wrap
class.
Attribute | Default | Description |
---|
location | '' | Theme location slug to render. |
name | '' | Specific menu slug to render instead of location . |
[supernova-google-reviews-badge]
- Defined in:
functions.php
- Purpose: Fetches rating data from the Google Places Details API and displays a branded Google review badge with star meter.
- Requirements: Requires a valid
google_places_api
option value and an accessible Place ID.
Attribute | Default | Description |
---|
place-id | (required) | Google Place ID to request rating details for. |
[osm-map]
- Defined in:
includes/blocks.php
- Purpose: Embeds a Leaflet-powered OpenStreetMap with clustered markers.
- Notes: Automatically enqueues required Leaflet assets from CDNs on load.
Attribute | Default | Description |
---|
markers | '' | Pipe-separated list of marker arrays, e.g. 55.134874, -7.453658, "Label" . |
height | 400px | CSS height applied to the map container. |
[supernova-latest-property-cards]
/ [article-grid-overlay]
- Defined in:
includes/blocks.php
- Purpose: Outputs a flex-based set of recent posts with featured images, categories, and dates. Both shortcode names invoke the same renderer.
Attribute | Default | Description |
---|
category | '' | Filter posts by category slug. |
count | 18 | Number of posts to query. |
[supernova-aside]
- Defined in:
includes/blocks.php
- Purpose: Renders a fixed aside/panel that can preload a reusable block, optional “don’t show again” checkbox, and animation accents.
Attribute | Default | Description |
---|
id | 0 | Template part ID to render inside the aside body. |
width | 400 | Width of the aside in pixels. |
trigger | '' | Data attribute used by theme scripts to trigger opening. |
controls | 1 | Set to 0 to hide the “don’t show again” checkbox. |
accent | #333 | Hex color used for the header sheen and border. |
title | Get Started | Aside header label. |
display | 0 | Use 1 to render the aside expanded by default. |
[faceted-search]
- Defined in:
includes/blocks.php
- Purpose: Outputs a simple search form and extends the main search query to include multiple custom post types.
[logo-carousel]
- Defined in:
modules/logo-carousel/logo-carousel.php
- Purpose: Builds a horizontal logo carousel from the
logo
custom post type and injects minimal CSS for layout.
Attribute | Default | Description |
---|
per-page | 4 | Number of logos visible at once (drives CSS variable). |
in | '' | Comma-separated list of logo post IDs to limit the carousel to. |
[supernova-testimonials]
- Defined in:
modules/testimonials/testimonials.php
- Purpose: Displays testimonials in a masonry-like grid with responsive JavaScript sizing.
[supernova-testimonial-carousel]
- Defined in:
modules/testimonials/testimonials.php
- Purpose: Creates a Flickity-powered testimonial carousel with optional taxonomy filters and autoplay.
Attribute | Default | Description |
---|
in | '' | Comma-separated list of testimonial IDs to include. |
type | '' | Filter by testimonial_type taxonomy slug. |
autoplay | '' | Flickity autoplay value, e.g. true or a millisecond interval. |
slides | 1 | Number of testimonial columns shown per slide (also affects CSS width). |
[supernova-testimonial-blocks]
- Defined in:
modules/testimonials/testimonials.php
- Purpose: Outputs each testimonial as a full-width media text block with background image, quote, and cite, ordered by menu order.