Skip to content

Instantly share code, notes, and snippets.

@nashvillegeek
Created November 19, 2013 14:51
Show Gist options
  • Save nashvillegeek/7546482 to your computer and use it in GitHub Desktop.
Save nashvillegeek/7546482 to your computer and use it in GitHub Desktop.
Sublime Text 2 Snippet: Advanced Custom Fields Repeater subfield with conditional
<snippet>
<content><![CDATA[
if( \$row['${1:subfield_slug}'])
{
echo '<li>${1:subfield_slug}: ' . \$row['${1:subfield_slug}'] . '</li>';
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>acfrepeatersubfield</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment