Skip to content

Instantly share code, notes, and snippets.

@clarklab
Created October 29, 2012 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clarklab/3976455 to your computer and use it in GitHub Desktop.
Save clarklab/3976455 to your computer and use it in GitHub Desktop.
WP_Query snippet (with php enclosures) for Sublime Text 2
<snippet>
<content><![CDATA[
<?php \$${1:query} = new WP_Query('${3:posts_per_page=5}'); ?>
<?php while (\$${1:query}->have_posts()) : \$${1:query}->the_post(); ?>
${3:// do something}
<?php endwhile; ?>
]]></content>
<tabTrigger>wpq</tabTrigger>
<description>WP_Query with php enclosures</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment