February 8, 2011

New WordPress Sugar for Espresso

Update 11/15/11: The sugar is now compatible with Espresso 2! Download version 2.0 below. (Thank you for this, Diego!)
Update 3/7/11: I’ve updated this to include several functions that were missing from autocomplete. Download version 1.3 below.

Here it is! I finally updated my Espresso sugar for WordPress 3.1. I rewrote the functions list to include every non-deprecated function in the WordPress Function Reference. This includes:

  • Multisite functions
  • Theme/plugin authoring functions, such as wp_enqueue_script
  • Post Format functions

I also revamped the included snippets. These are the snippets that are included in the sugar:

  • Loop (now in HTML 5)
  • Custom loop (now in HTML 5)
  • Register custom menu
  • Register custom post type
  • Register sidebar
  • Register custom taxonomy
  • Stylesheet link
  • Theme CSS header

On top of all the new stuff, I updated the snippets to conform with WordPress coding standards.

Download WordPress Sugar for Espresso v2.0

(Possibly) Related Posts

  1. WordPress template tags auto-complete Sugar for Espresso
  2. Updated WordPress Sugar in the Works
  • http://www.onedigitallife.com paul burd

    Awesome, thanks so much for creating this!

  • AdamGold

    I installed it but can’t see nothing new. How can I use it?

    • Alison Barrett

      You’ll have to restart Espresso for the sugar to be fully installed. This will just give WordPress functions as autocomplete suggestions in PHP, and it will include some new snippets in the Snippets pane.

      • Anonymous

        Hello there!

        This is an awesome idea! However, I’m not able to get it to work (yet). I see the Snippets in Espresso 2 (just released recently). But I’m not seeing the autocomplete suggestions. What am I missing here?

  • Steven

    Thanks a lot! I really appreciate your effort making this.

  • MJ

    Thank you for this Alison!

  • Pingback: Tweets that mention WordPress Template Tags Auto-Complete Sugar for Espresso v. 1.2 -- Topsy.com

  • Morgan

    Thanks Dude, very much appreciated for taking the time.

  • Jeff

    Thanks for this.

  • Gokou

     Hi!

    I can’t download it. Please help.

    Thanks!

    • http://alisothegeek.com Alison Barrett

      The link is working again. Sorry about that!

  • http://twitter.com/whoiscemk Cem K.

    Hmm… I was sad to see no HTTP and Transient API codes in the sugar… Turns out, they are not listed in the function reference. Don’t know why.
    I think you should add those too. (In fact, someone should just add them to the function reference.) Those are the two API’s that any plugin coder should know about and use more often. It’s ridiculous to see so many people still use custom database structures and cURL for things they just do not need to.

  • norman784

    I think will be better if upload it to github, like other sugar projects!

    • http://alisothegeek.com Alison Barrett

      That’s definitely on the menu! Hopefully I’ll have that done in the next week or so!

      • http://twitter.com/FunkyLarma Adam Chamberlin

        Hi Alison,

        Hope you dont mind but I’ve put the sugar up on GitHub: https://github.com/funkylarma/WordPress.sugar
        I was having a few problems with the autocomplete so had a dig around

        • http://hadto.net hadto

          I had the same problem with autocomplete, installed Adam’s fork and now everything works. 

        • http://twitter.com/samjbmason Sam Mason

          How do I go about reinstalling once I have downloaded the github fork?

        • http://www.wadehammes.com wadehammes

          This is awesome, the way it should have been in the first place! Thanks to Alison and you Adam for cleaning it up.

  • Dronixs

    Thanks for the update, however it doesn’t seem to be compatible with Espresso 2(alpha)

  • http://www.facebook.com/rene.pall Rene Pall

    Thanks a lot.

  • Stephen

    Thanks for providing this plugin, any idea when it will be updated to work with Espresso 2?

  • Sam

    Not working in Espresso 2 *sadface*

    • Chris M.

      Did anyone here get it to work in Espresso 2 ?

  • Sam Jbmason

    Any chance of updating this for espresso 2. Pretty please.

  • Dooo

    a ‘metoo’ for updating for Espresso 2 please

  • Anonymous

    I would pay for an update to espresso 2!

  • http://alisothegeek.com Alison Barrett

    So sorry for the horrible delay in posting a version compatible with Espresso 2. I stopped using Espresso a few months ago (switched to PhpStorm), but someone sent me a version of my sugar that’s compatible with the new Espresso. I updated the download link with the new file. Enjoy!

  • lechatlisse

    doesn’t seem to work in espresso 2.0.1 ??

  • Frank

    Work well on Expresso 2 ! thx++

  • Brian Reed

    New to Espresso. Is code completion working for this Sugar? Thanks.

  • http://twitter.com/fmontes Freddy Montes

    How this is work? I installed the sugar and restart the Espresso but I dont see any sign of this

  • Herwindo Artono

    Thanks for this :) , downloading it

  • Jan Beck

    Any chance we can have the default parameters just like PHP-autocomplete behaves?

    E.g. get_the_post_thumbnail would autocomplete to get_the_post_thumbnail( $post_id, $size, $attr )