Skip to content

Instantly share code, notes, and snippets.

@stphnwlkr
Last active May 18, 2016 17:01
Show Gist options
  • Save stphnwlkr/b51116bf81d71d3c94647c8c86912ffb to your computer and use it in GitHub Desktop.
Save stphnwlkr/b51116bf81d71d3c94647c8c86912ffb to your computer and use it in GitHub Desktop.
remote query function getWPPost(required string ds, required numeric id){
var p = queryExecute("Select post_title, post_name, post_content, post_date from wp_posts where post_status = 'publish' and
id= :id",{id={value='#arguments.id#', cfsqltype='cf_sql_int'}},{datasource = '#arguments.ds#'} );
return p;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment