[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

  1. widget – Determines whether the output is wrapped in a widget container.
    • Default: on.
    • Options: on, off. Specify one only.
  2. title – The title displayed above the project list.
    • Default: Recent {Project Plural Label}.
    • Options: Any text value.
  3. limit – The maximum number of projects to display.
    • Default: 5.
    • Options: Any numeric value. Specify one only.

DESIGN

  1. alignment – Alignment of the content.
    • Default: default-alignment.
    • Options: default-alignment, text-left, text-center, text-right, text-justified. Specify one only.
  2. 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.
  3. background – Background image for the element.
    • Options: Any image URL.
  4. classes – Adds an HTML wrapper class so you can modify the specific output with custom CSS. Use spaces to separate
  5. id – Custom ID for the element.

CONTENT

  1. show_image – Whether to display the featured image for each project.
    • Default: yes.
    • Options: yes, no. Specify one only.
  2. show_in_modal – Determines whether the project content should be displayed in a modal (popup) window.
    • Default: off.
    • Options: on, off. Specify one only.
  3. orderby – Specifies the criteria for ordering the projects.
    • Default: date.
    • Options: id, date, title, menu_order, rand. Specify one only.
  4. order – Specifies the order of the projects.
    • Default: desc.
    • Options: asc, desc. Specify one only.

FILTER

  1. featured – Filters projects to display only featured projects.
    • Default: no.
    • Options: no, yes. Specify one only.
  2. categories – Filter projects by categories. Comma-separated list of category IDs or slugs.
  3. exclude_categories – Comma-separated list of category IDs to exclude.
  4. tags – Filter projects by tags. Comma-separated list of tag IDs or slugs.
  5. exclude_tags – Comma-separated list of tag IDs to exclude.
  6. posts – Specific projects to display. Comma-separated list of project IDs.
  7. 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 settings

Example 2:
This example displays the 10 most recent projects with a custom title and background.