WordPress plugin intelligence profile

Display custom fields in the frontend – Post and User Profile Fields

Display post and user custom fields data anywhere on the frontend using a shortcode, including advanced custom fields (ACF) fields.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.3.0
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 4.1 · PHP —
Directory statusactive
Last directory update22 Aug 20262mo ago
Active installations500Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 8 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Display custom fields in the frontend – Post and User Profile Fields version 1.3.0 as active, updated 2mo ago and tested up to WordPress 7.1.

Overview

About this plugin

UPDATE

Our plugin now includes a settings page where you must whitelist every field that you want our shortcode to display in the front end, for security reasons. Your existing shortcodes will not work until you whitelist those field keys.

The “sanitization” parameter has been removed. All the output is sanitized with wp_kses_post always.

The “wp_filter” parameter has been removed. Now we have more specific parameters like wpautop=”yes” to turn line breaks into paragraphs, and do_shortcodes=”yes” to parse shortcodes.

Display post and user custom fields data anywhere on the frontend using a shortcode, including advanced custom fields (ACF) fields.

-

Do you want to display information from a user profile on the frontend?

-

Do you want to display custom fields from a post on the frontend?

-

Have you created metaboxes with Advanced Custom Fields and you want to display those fields?

Use this plugin to display any field for a post or user profile on the frontend.

Basic examples

-

Display email of the current user: [vg_display_data key="user_email" data_source="user_data"]

-

Display first name of the current user: [vg_display_data key="first_name" data_source="user_meta"]

-

Display full name of the current user: [vg_display_data key="first_name,last_name" data_source="user_meta"]

-

Display the title of the current post: [vg_display_data key="post_title" data_source="post_data"]

-

Display the excerpt of the current post: [vg_display_data key="post_excerpt" data_source="post_data"]

-

Display the categories of the post ID = 20: [vg_display_data object_id="20" key="category" data_source="post_terms" template="<b>Categories:</b> {{var}}" joiner=", "]

-

Get featured image url: [vg_display_data key="_thumbnail_id" template="<b>Image url:</b> {{var}}" flag="file_url"]

-

: [vg_display_data key="_thumbnail_id" template="<b>Image:</b> {{var}}" flag="image_tag"]

Advanced examples

-

post_id=ANY_NUMBER: [vg_display_data object_id_type="query_string" object_id="post_id" key="post_title" data_source="post_data"]

-

Get email of the current user with phone number = 1234 (meta_key=phone AND meta_value=1234): [vg_display_data object_id_type="find" object_id="phone:1234" key="user_email" data_source="user_data"]

Parameters

-

object_id = Post ID. Leave empty to use the current post. Possible values: (empty), current, number, query string key if object_id_type=query_string, meta_key:meta_value if object_id_type=find

-

object_id_type = Leave empty if object_id is empty, or current, or is a number. Possible values: query_string, find

-

data_source = What database table to use to find the data. Default = post_meta. Possible values: post_data, post_meta, user_data, user_meta, post_terms.

-

key = Field key. It accepts one or multiple keys separated by commas. For example, to display full name = first_name,last_name.

Required.

-

template = HTML fragment to use to display the field, if the field is empty the html is not displayed. Optional.

-

default = Default value to use if the field is empty. Optional.

-

joiner = If the field has multiple values, it will join the values with this string. Default ” ” (one space). Optional.

-

flag = Use only if the field contains a file ID to conver the ID to URL or image tag. Default values: file_url, image_tag. Optional.

-

wpautop = Whether to turn line breaks into paragraphs. Optional, only for advanced users.

-

do_shortcodes = Whether to parse shortcodes before displaying the field value. Optional, only for advanced users.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • custom fields
  • custom pages
  • wordpress templates
  • wp page templates
  • acf
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 4.1 · PHP not listed
Update activity22 Aug 20262mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.