WordPress plugin intelligence profile

Display Custom Fields

This plugin allows you to display the value of a custom field on a page or post. Permitted values are raw text, html, javascript, javascript file url, …

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.9
Current version1.1.1
WordPress coverageTested up to WordPress 3.9
Minimum stackWP 3.0 · PHP —
Directory statusactive
Last directory update31 Jul 201412y ago
Active installations10Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 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 version 1.1.1 as active, updated 12y ago and tested up to WordPress 3.9.

Overview

About this plugin

This plugin allows you to display the value of a custom field on a page or post. Permitted values are raw text, html, javascript, javascript file url, css, css file.

x it also allows you to show a custom field of any page or post, provided you have the id.

One of the intended use of this plugin is to provide just in time code without editing the theme. Often code, especially css, gets lost with theme change. This techniques will ensure the values are loaded only on the given page and they will survive changes of themes and other plugins.

You can also use this to include javascript snippets or files. They will only be loaded on the given post or page. This in turn allows for loading of scripts only where needed.

You may use the plugin in two ways:

[dcf field=”name_of_custom_field”]

or optionally you can

– define the type of the field value. By default the type is “raw”.

– provide the id number of the page or post. By default, it would be the current page/post id.

[dcf field=”name_of_custom_field” type=”value_type” id=’post_or_page_id_number’]

The accepted value types are:

“raw” – this is the default and you do not need to specify this type. It outputs the value as it is. You can use html code in the values quite safely.

“js” – use this to specify that the value is actually javascript. Do not wrap it with the script tag. Remember that $ is not a valid jQuery replacement in WordPress.

You should use “jQuery” instead.

“jsf” – You may need to include a javascript file. The value of the custom field should be a fully qualified javascript file url.

“css” – use this to specify css code in the value of the custom field.

“cssf” – You may need to include a css file. The value of the custom field should be a fully qualified css file url. Here I would like to note that:

– It is highly unusual to include css files in the body. However, it does work.

– There may be a side effect that some elements may not show properly until the css file is completely loaded.

WordPress.org metadata

Plugin tags

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

  • custom fields
  • display field value
  • display meta
  • meta fields
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.9

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.9.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.9
Minimum requirementsWordPress 3.0 · PHP not listed
Update activity31 Jul 201412y 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.