Tuesday, September 1st, 2009 | downloads, Tips, Web Dev

Textmate WordPress Bundle Released (version 0.5)

It should be said here that there is a newer version of this bundle. The following version of the bundle has a few snippets that have errors.

If this helps you, then good. I put a WordPress Textmate bundle I use for work on my If you use Textmate, just download, then double click to install. It’s not very big yet…but I’ll update it as I add functionality…or you can if you like.

WordPress Textmate Bundle (Version 0.5)

Misc Snippets (by tab trigger)

  • theloop – the loop with tab stops at appropriate places
  • bloginfo – the template tag bloginfo with tab stop to fill in parameter
  • wig_sidebar – Dynamic sidebar with tab stop inside if statement – tab twice to ignore.
  • themeinfo – Stylesheet header with tab stops (CSS)
  • wt_get_depth – spits out the function wt_get_depth, which can be used to determine where you are in relation to the root…powerful little function.
  • page_template – page template with appropriate tab stops.
  • onpage – includes conditional to check if user is on a specific page. Best used in nav menu.
  • is_page – if statement that checks to see if a specific page is being used.

Template Tag snippets

  • get_sidebar – template tag get_sidebar(); with open and close PHP brackets.
  • the_excerpt – the_excerpt();
  • the_title – the_title();
  • the_content – template tag, the content
  • the_permalink – template tag, the_permalink();

Also, Here’s how you can get to the snippets, in case you want to make changes or see them before using them:

From the menu, Bundles > Bundle Editor > Edit Snippets

From the menu, Bundles > Bundle Editor > Edit Snippets

Snippets are very easy to modify from this window.

Snippets are very easy to modify from this window.

Filed Under: downloads, Tips, Web Dev

No Comments yet

Leave a Comment