I’m lost with a syntax matter, I hope someone could clarify this.
I’m creating csutom ACF blocks for a website, everything fine but I don’t understand why I must use a different syntax to access my block template (plugin_dir_path) vs my block assets (plugin_dir_url) even if they are placed in the same folder?!
The difference is the styles are being enqueued for display on the frontend.
This is the equivalent difference to get_stylesheet_directory and get_stylesheet_directory_uri. One is executing a file and the other is displaying a path to a file.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users