ACF Views is the simplest way to display values from custom post fields anywhere on your site using shortcodes. This means you don’t need to write PHP code to get field values, and you don’t need to read documentation about field’s return formats.
The views are reusable and shortcodes can be pasted ANYWHERE that supports shortcodes (e.g. Gutenberg shortcode block) with ANY THEME and ANY PAGE BUILDER.
Important! ACF Views plugin requires an active Advanced Custom Fields PRO plugin.
How to use
- Setup Fields in your Advanced Custom Field Group
- Create an ACF View and select target fields (they can be from different field groups)
- Copy and paste the shortcode in the target place (like a page or post)
- Make sure the chosen fields are filled at the target object. By default, field values will be read from the current object where shortcode was pasted. To show another object’s data use the special shortcode argument (object-id).
That’s it! Now you can visit the frontend, your view will get field values properly (depending on a field type), and will automatically insert an HTML markup, that you can style with CSS (using assigned or built-in view classes).
Ảnh màn hình
What field types are supported?
ACF Views currently supports the following field types (with all available return formats):
Người đóng góp & Lập trình viên
“ACF Views” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.Những người đóng góp
Nhật ký thay đổi
- Demo import feature
- Video review
- Plugin’s version
- Screenshots, plugin’s version