A WordPress plugin to manage and display resources.
This provides a Resources custom post type, with a link custom field. It also provides a dynamic searchable and filterable front-end catalog display via a shortcode.
Type the shortcode [resource_catalog]
to show your catalog on a page.
Below is a list of shortcode attributes that you can specify on the shortcode, along with their default values:
Example usage: [resource_catalog search_expand_button="false" search_expanded="true"]
site_url=""
: specify the base API URL for pulling in resources, i.e "{site_url}/wp-json/wp/v2"search_expand_button="true"
: show/hide the search expand buttonsearch="true"
: show/hide the search boxreset="true"
: show/hide the reset buttonfilters="true"
: show/hide all filterstags_filter="true"
: show/hide the tags filtercategories_filter="true"
: show/hide the categories filtercustom_filters=""
: comma-separated slugs of CPTUI custom taxonomies for which to show filterscustom_filters_labels="true"
: show/hide the custom filters labelscustom_filters_descriptions="true"
: show/hide the custom filters descriptionssearch_expanded="false"
: expand the search & filters by defaultsearch_tags=true
: if a search exactly matches a tag, show all resources with that tag instead of searching contentsearch_categories=true
: if a search exactly matches a category, show all resources with that category instead of searching contentsearch_custom_filters=true
: if a search exactly matches a custom taxonomy, show all resources with that custom taxonomy instead of searching contentlink_label="Get"
: the text label to use on the resource link buttonorderby="title"
: order the displayed resources by the specified attribute (see Wordpress REST API docs for allowable values)order="asc"
: order the displayed resources as 'asc' or 'desc'post_type="resource"
: the slug of the post type to query and show in resultsshow_all="true"
: load and show all resources on page loadfeatured_image="true"
: show featured images of resourcesexcerpt="true"
: show the excerpts of resourcescontent="true"
: show the content of resourcescontent_expand_button="true"
: hide the content behind a "Details" toggle buttonoutbound_analytics="false"
: capture outbound resource link click events in Google Analytics
Resources have a custom link field that you can point to any URL. This will be displayed as a "Get" button on the resource. Use the link_label
shortcode attribute to set a different label. If utilizing your own custom post type, it must have a custom field with slug resource_link
in order to show this button.
If you prefer to use a different post type than the included default "Resource" type, you can specify the slug of that post type with the post_type
shortcode attribute.
If you have the Custom Post Type UI (CPTUI) plugin activated, you can add custom taxonomies to your resources and include those taxonomies as filters on the front-end catalog display. See the shortcode attribute custom_filters
.