forked from bangordailynews/WordPress-xmlrpc-extenders
-
Notifications
You must be signed in to change notification settings - Fork 0
andboson/WordPress-xmlrpc-extenders
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Usage: You can use the structure below to create and add your own xmlrpc methods, or you can use the function below yourself (it's pretty powerful) Some example arrays: array( 1, $username, $password, $post_type, $category, $numberposts, $extra ); Get 10 most recently published posts: array( 1, $username, $password, 'post', false, 10, false ); Get 10 most recently modified posts array( 1, $username, $password, 'post', false, 10, array( 'orderby' => 'modified' ) ); Get 10 most recently modified posts in the sports category ($category can be either a slug or an ID) array( 1, $username, $password, 'post', 'sports', 10, array( 'orderby' => 'modified' ) ); Get 10 most recently modified posts or pages array( 1, $username, $password, array( 'post', 'page' ), false, 10, array( 'orderby' => 'modified' ) ); Search for posts in the sports category with the term Tom Brady in it array( 1, $username, $password, 'post', 'sports', 10, array( 's' => 'Tom Brady' ) ); Basically, it accepts anything get_posts accepts (http://codex.wordpress.org/Function_Reference/query_posts#Parameters) William P. Davis originally made this for the Bangor Daily News.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- PHP 100.0%