[recent_project_widget]
The shortcode designed to display a list of recent projects based on the provided
Product
Shortcode Attributes
There are a number of shortcode attributes available which you can use to customize the output.
GENERAL LAYOUT
- widget – Determines whether the output is wrapped in a widget container.
- Default:
on. - Options:
on,off. Specify one only.
- Default:
- title – The title displayed above the project list.
- Default:
Recent {Project Plural Label}. - Options: Any text value.
- Default:
- limit – The maximum number of projects to display.
- Default:
5. - Options: Any numeric value. Specify one only.
- Default:
DESIGN
- alignment – Alignment of the content.
- Default:
default-alignment. - Options:
default-alignment,text-left,text-center,text-right,text-justified. Specify one only.
- Default:
- theme – Theme or style for the section.
- Default:
default-section. - Options:
default-section,light-section,grey-section,dark-section,theme-section,second-theme-section. Specify one only.
- Default:
- background – Background image for the element.
- Options: Any image URL.
- classes – Adds an HTML wrapper class so you can modify the specific output with custom CSS. Use spaces to separate
- id – Custom ID for the element.
CONTENT
- show_image – Whether to display the featured image for each project.
- Default:
yes. - Options:
yes,no. Specify one only.
- Default:
- show_in_modal – Determines whether the project content should be displayed in a modal (popup) window.
- Default:
off. - Options:
on,off. Specify one only.
- Default:
- orderby – Specifies the criteria for ordering the projects.
- Default:
date. - Options:
id,date,title,menu_order,rand. Specify one only.
- Default:
- order – Specifies the order of the projects.
- Default:
desc. - Options:
asc,desc. Specify one only.
- Default:
FILTER
- featured – Filters projects to display only featured projects.
- Default:
no. - Options:
no,yes. Specify one only.
- Default:
- categories – Filter projects by categories. Comma-separated list of category IDs or slugs.
- exclude_categories – Comma-separated list of category IDs to exclude.
- tags – Filter projects by tags. Comma-separated list of tag IDs or slugs.
- exclude_tags – Comma-separated list of tag IDs to exclude.
- posts – Specific projects to display. Comma-separated list of project IDs.
- exclude_posts – List of specific project IDs to exclude. Comma-separated list of project IDs.
Example Usage
[recent_project_widget]
[recent_project_widget title="Latest Projects" limit="10" background="http://example.com/background.jpg"]
| Example 1: This example displays the 5 most recent projects with default settingsExample 2: This example displays the 10 most recent projects with a custom title and background. |