Last active
May 18, 2016 17:01
-
-
Save stphnwlkr/b51116bf81d71d3c94647c8c86912ffb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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