This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
\$${1:varname} = get_field('${2:field_name}', 'option'); | |
if (\$${1:varname} != '') { | |
echo \$${1:varname}; | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>acfoption</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
\$${1:varname} = get_field('${2:field_name}', '${3:\$post_id}'); | |
if (\$${1:varname} != '') { | |
echo \$${1:varname}; | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>acfgetfield</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
\$${1:varname} = get_field('${2:field_name}', 'option'); | |
if ((\$${1:varname} != '') && ((\$${1:varname} != '0'))) { | |
echo \$${1:varname}; | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>acfoption-numeric</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
<section class="tax-${1:tax-slug}-block"> | |
<?php | |
\$myterms = get_terms('${2:tax_name}', 'orderby=${3:title}&order=${4:ASC}&hide_empty'); | |
foreach (\$myterms as \$term) : ?> | |
<div class='tax-${1:tax-slug}-item'> | |
<h2><a href="<?php echo \$term->slug; ?>"><?php echo \$term->name; ?></a></h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
<div class="recentPost widget"> | |
<h2>Recent Posts:</h2> | |
<?php | |
global \$post; | |
\$args = array( 'numberposts' => ${1:5},'category' => ${2:'uncategorized'} ); | |
\$myposts = get_posts( \$args ); | |
foreach( \$myposts as \$post ) : setup_postdata(\$post); ?> | |
<div class="recentPostItem"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
<files wp-config.php> | |
order allow,deny | |
deny from all | |
</files> | |
# Block the include-only files. | |
RewriteEngine On | |
RewriteBase / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
if( get_field( '${1:field_name}' ) ): ?> | |
<p><?php the_field( '${1:field_name}' ); ?></p> | |
<?php endif; ?> | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>acfthefield</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
// Declare sidebar widget zone | |
if (function_exists('register_sidebar')) { | |
register_sidebar(array( | |
'name' => '${1}', | |
'id' => '${2}', | |
'description' => '${3}', | |
'before_widget' => '<div id="%1$s" class="widget %2$s">', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
define('DISALLOW_FILE_EDIT', true); | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>WPDisallow</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<!-- <scope>source.php</scope> --> | |
</snippet> |
OlderNewer