simple-acf-snippets

Advanced Custom Field snippets for Atom

y0ukn0wwho

58

0

0.9.0

MIT

GitHub

ACF Snippets for Atom

Snippets based on Elliot Condon's original ACF documentation.

Snippets

The Field Snippets

Documentation

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

Documentation

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

Documentation

Snippet Description
acf-rf Basic loop
acf-rf-option Basic loop for options page fields

Image Field Snippets

Documentation

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

  1. Add support for Sublime ACF Snippets prefixes
  2. Optional refined snippet alternatives
  3. Autocomplete suggestions