Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Created October 11, 2016 20:54

Revisions

  1. Tonya Mork created this gist Oct 11, 2016.
    3 changes: 3 additions & 0 deletions alias.sql
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    SELECT posts.ID, posts.post_title
    FROM wp_posts AS posts
    WHERE posts.post_type = 'post' AND posts.post_status = 'publish';