Description
The shortcode allows you to display custom field values from Easy Content Manager (ECM) on any WordPress page or post. Whether it’s an image, text, link, or any other custom field, this shortcode makes it simple to showcase your content exactly where you want it.
This shortcode is highly customizable, letting you pull specific field data for any item created in ECM, giving you full control over your site’s front-end display.
Setup Process
To use the shortcode, follow these steps to set up and display your custom fields:
- Create a Custom Post Type:
- Navigate to ECM > Post Types in your WordPress admin dashboard.
- Click Add Post Type to create a custom post type (e.g., “Job Listings,” “Recipes,” or “Products”).

- Configure the post type settings (e.g., Plural Label and add custom fields like text, image, link) and save. ECM supports 35+ field types, such as Text, Image, Video, and more.
- Your new post type will appear in the ECM menu.

- Add an Item to the Post Type:
- Go to the ECM menu and select your newly created post type (e.g., ECM > Job Listings).
- Click New Item to create an item (e.g., a specific job or recipe).

- Fill in the custom fields (e.g., job title, image, description) and save.
- After saving, a unique Item ID (or post ID) will be generated and displayed below the item in the ECM dashboard.
- Insert the Shortcode:
- Open the page or post where you want to display the custom field.
- Add a Shortcode Block using the Block Editor:
- Use the block inserter (+ icon) and search for “Shortcode,” or type /shortcode to add it.
- Paste the shortcode into the block.

- Configure the Shortcode:
- The shortcode requires two attributes:
- key: The name of the custom field you want to display (e.g., “image,” “name,” “link”).
- post_id: The unique Item ID generated for the item in the ECM dashboard.
- Example shortcode format:
- Replace field_name with the exact field name (e.g., “image”) and 123 with the Item ID from the ECM dashboard.
- The shortcode requires two attributes:
Shortcode Attributes
The shortcode uses the following required attributes to display your custom field:
- key: The name of the custom field as defined in your post type (e.g., “image,” “name,” “link”). This is case-sensitive and must match the field name exactly.
- post_id: The unique ID of the item, found in the ECM dashboard after creating the item.











