Shortcode background and usages

Note: delete or make this page private before the site is live.

  • Listing of shortcodes outlined with examples below.
  • Where possible, we use parameters/attributes within the shortcode so one shortcode can be used in different scenarios or for different post types.
  • Shortcodes should all be kept in the theme/includes/custom-shortcodes.php file or they will be FacetWP shortcodes
  • Shortcodes and parameters use WP_Query. Additional information on basic functions i.e. order, orderby, etc can be found in WordPress Codex

&#91latestposts]

[latestposts]
[latestposts posts="posttype" per_page="number" order="ASC/DESC" orderby="field to orderby"]

Available attributes:

  • posts (the post type)
  • per_page (how many to show in the first list of results)
  • order (ASC or DESC)
  • orderby (the field or item to orderby. See WP_Query codex for more)

Default settings:

  • posts = post
  • per_page = 3
  • order = DESC
  • orderby = date

Example:

For Resource posts, 10 per page, ordered by date, descending

[latestposts posts="resource" per_page="10" order="DESC" orderby="date"]
EHCA Recognizes Kellyann Bishop-Siland for Exceptional Emergency Housing Support Services
News

EHCA Recognizes Kellyann Bishop-Siland for Exceptional Emergency Housing Support Services

 Education and Health Centers of America, Inc. (EHCA) recently recognized Ms. Kellyann Bishop-Siland, who serves as the...
Read More
EHCA’s Residential Community Reintegration Program (RCRP) Newsletter: Volume 9
News

EHCA’s Residential Community Reintegration Program (RCRP) Newsletter: Volume 9

Check out Volume 9 of Education & Health Centers of America, Inc.'s (EHCA) Residential Community Reintegration Program...
Read More
Collaboration in Action: Tully House and NJLEAD Join Forces to Deliver Impactful Resources for Reintegration Success
Events News

Collaboration in Action: Tully House and NJLEAD Join Forces to...

 On January 23, 2025, Tully House, a Residential Community Reintegration Program (RCRP), hosted a highly successful Reentry...
Read More
EHCA Announces Expansion of Toll-Free 1-800 Hotline Services
News

EHCA Announces Expansion of Toll-Free 1-800 Hotline Services

Education & Health Centers of America, Inc. (EHCA) is proud to announce the expansion of the agency’s...
Read More
EHCA’s Quality Assurance Director and ERRA Reentry Support Specialist Featured in ACA Newsletter
News

EHCA’s Quality Assurance Director and ERRA Reentry Support Specialist Featured...

Education & Health Centers of America, Inc.'s (EHCA) corporate Quality Assurance Director, Shannon Bilder, and the Emergency...
Read More
EHCA Recognizes Staff With 20+ Years of Service During Holiday Season
Events

EHCA Recognizes Staff With 20+ Years of Service During Holiday...

Education & Health Centers of America, Inc. (EHCA) recently hosted a festive holiday celebration honoring its staff...
Read More
EHCA Partners with New Jersey Department of Military and Veteran Affairs to Bolster Support for Veterans in the Community
Events

EHCA Partners with New Jersey Department of Military and Veteran...

In a significant step toward improving access to resources for at-risk veterans with unmet needs in New...
Read More
EHCA’s Residential Community Reintegration Program (RCRP) Newsletter: Volume 8
News

EHCA’s Residential Community Reintegration Program (RCRP) Newsletter: Volume 8

Check out Volume 8 of Education & Health Centers of America, Inc.'s (EHCA) Residential Community Reintegration Program...
Read More
EHCA Expands Mission Statement to Serve At-Risk and Under-Served Populations
News

EHCA Expands Mission Statement to Serve At-Risk and Under-Served Populations

Hot off the press! Education and Health Centers of America, Inc. (EHCA) has officially updated its mission...
Read More
EHCA Staff Spotlight: Helen Adams
News

EHCA Staff Spotlight: Helen Adams

Read More
Successful Veteran Resource Fair Held at Gordon H. Mansfield Veterans Community
Events

Successful Veteran Resource Fair Held at Gordon H. Mansfield Veterans...

 On September 14, 2024, Education & Health Centers of America, Inc. (EHCA) hosted a Veteran Resource Fair...
Read More
EHCA’s Residential Community Reintegration Program (RCRP) Newsletter: Volume 7
News

EHCA’s Residential Community Reintegration Program (RCRP) Newsletter: Volume 7

Check out Volume 7 of Education & Health Centers of America, Inc.'s (EHCA) Residential Community Reintegration Program...
Read More
Veteran Resource Fair Postponed to September 14, 2024
Events

Veteran Resource Fair Postponed to September 14, 2024

UPDATED FLYER! Unfortunately, due to the projected forecast, we have decided to postpone Education & Health Centers...
Read More
EHCA’s Residential Community Reintegration Program (RCRP) Newsletter: Volume 6
News

EHCA’s Residential Community Reintegration Program (RCRP) Newsletter: Volume 6

Check out Volume 6 of Education & Health Centers of America, Inc.'s (EHCA) Residential Community Reintegration Program...
Read More
[relatedpt]
[relatedpt posts="posttype" per_page="number" order="ASC/DESC" orderby="field to orderby" title="Related People"]

Available attributes:

  • posts (the post type) {post type and acf field name should be same}
  • per_page (how many to show in the first list of results)
  • order (ASC or DESC)
  • orderby (the field or item to orderby. See WP_Query codex for more)
  • title (slider title)

Default settings:

  • posts = post
  • per_page = 10
  • order = DESC
  • orderby = date
  • title = Related People