Skip to content

danielgoulyk/acf-dynamic-shortcodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ACF Dynamic Shortcodes

ACF Dynamic Shortcodes is a lightweight WordPress plugin that lets you dynamically register shortcodes for Advanced Custom Fields (ACF) attached to a specific page — without writing a single line of code.

Perfect for custom pricing pages, dynamic content blocks, and personalised shortcodes mapped to ACF fields.


Features

  • Admin settings panel to select an ACF source page
  • Auto-detects ACF fields from the selected page
  • Create custom shortcode names for each field
  • Copy-to-clipboard buttons for easy reuse
  • Editable value overrides directly from the plugin UI
  • Syncs edited values back to the ACF field itself
  • Fallback message when value is missing
  • Works with both ACF Free and Pro

Example Usage

If you have a custom field called starting_price, and you assign it a shortcode like:

[price]

You can then use that shortcode anywhere on your WordPress site — pages, posts, or builders — and it will automatically output the ACF field value from your selected source page.


Caching Notice

If you're using a caching plugin (like LiteSpeed Cache, WP Rocket, or W3 Total Cache), please remember to clear your site cache after saving changes in this plugin to see them reflected on the frontend.


Requirements

  • WordPress 5.0+
  • ACF Free or Pro
  • PHP 7.2+

License

This plugin is open-sourced and licensed under the MIT License.


Author

Daniel Goulykdanielgoulyk.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages