ACF Snippets for Atom
Snippets based on Elliot Condon's original ACF documentation.
Snippets
The Field Snippets
Snippet | Description |
---|---|
acf-tf |
Display a field value from the current post |
acf-tf-id |
Display a field value from another post |
acf-tf-if |
Use the_field / get_field with conditional statements |
Get Field Snippets
Snippet | Description |
---|---|
acf-gf |
Get a field value from the current post |
acf-gf-id |
Get a field value from another post |
acf-gf-if |
Use get_field with conditional statements |
Repeater Field Snippets
Snippet | Description |
---|---|
acf-rf |
Basic loop |
acf-rf-option |
Basic loop for options page fields |
Image Field Snippets
Snippet | Description |
---|---|
acf-img |
Basic image object |
acf-img-id |
Get image field by ID |
acf-img-url |
Get full image URL |
Utilities
Snippet | Description |
---|---|
acf-print |
Display an array of ACF objects |
Subfields
Snippet | Description |
---|---|
acf-tsf |
Display a sub field value |
acf-gsf |
Get sub field value |
acf-hsf |
Check if field has a sub field |
Todo
- Add support for Sublime ACF Snippets prefixes
- Optional refined snippet alternatives
- Autocomplete suggestions