Sublime text 3 custom snippets not triggering

enter image description hereI have just created sublime text snippet for PHP WordPress loop. But it’s not triggering while I was pressing tab.

<snippet>
    <content><![CDATA[
 if(have_posts()): ?>
    <?php while(have_posts()): ?>
        <?php the_post(); ?>
        <?php the_title(); ?>
    <?php endwhile; ?>
<?php endif; ?>
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <!-- <tabTrigger>wp_loop</tabTrigger> -->
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
</snippet>

Related posts

1 comment

  1. Remove commented line of tabTrigger

    <snippet>
        <content><![CDATA[
     if(have_posts()): ?>
        <?php while(have_posts()): ?>
            <?php the_post(); ?>
            <?php the_title(); ?>
        <?php endwhile; ?>
    <?php endif; ?>
    ]]></content>
        <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
        <tabTrigger>wp_loop</tabTrigger>
        <!-- Optional: Set a scope to limit where the snippet will trigger -->
        <scope>source.php</scope>
    </snippet>
    

Comments are closed.