How to use ACF Frontend Display

ACF Frontend Display is a plugin that can help you show the custom fields or meta_key on frontend without coding or knowing PHP at all.

To use ACF Frontend Display, you need to remember the shortcode of the plugin, which will help you show the fields.

Show ACF Custom Fields

To show the fields from ACF, you can use this following shortcode:

[cats_field group_id="" field="" auto_loop="" excerpt="" post_id=""]

  • group_id: This is the ID after you create field group, you can follow this article to get your desired group ID
  • field: If you want to show the fields one by one, you need to use the field’s slug to let the shortcode display that field on the front end.
  • auto_loop:  In the case you want to show all the fields at once, you  need to input yes or no (you can leave it blank too)
  • excerpt: If you want to exclude specific fields from showing on the result, you need to put the field’s slug here, separate by commas.

Show WordPress’s Meta_key

Beside showing field from ACF, you can show the meta_key (WordPress’s custom field) of specific post/page/category…etc with the following shortcode:

[cats_meta_key meta_key="" post_id=""]

Explanation:

Real Usage Cases

To help you understand better. We have created the specific usage cases for you.

  1. Show all fields at once
  2. Show all fields but exclude some
  3. Show all fields from specific post/page ID
  4. Show field, one be one from current post/page
  5. Show field on sidebar/widgets
  6. Show field of custom post types (like WooCommerce’s Product)
  7. Show fields of taxonomy (like tags, categories descriptions…)
  8. Show custom meta_key from current post
  9. Show custom meta_key from specific post
  10. Show custom meta_key of taxonomy on sidebar

Was this article helpful?

Related Articles

Leave A Comment?

+ 86 = 89