You appear to be a bot. Output may be restricted
Description
Helper function for shortcodes that use bw_get_posts()Note: post_mime_type= can have sub values. eg.
- application/pdf
- image/gif
- image/jpeg
- image/png
- text/css
- video/mp4
Usage
$array = _sc_posts();
Parameters
Returns
array associative array of BW_::bw_skv'sSource
File name: oik/libs/oik-sc-help.phpLines:
1 to 23 of 23
function _sc_posts() { return( array( 'numberposts' => BW_::bw_skv( "5", __( "numeric", null ), __( "number to return", null ) ) , 'offset' => BW_::bw_skv( 0, __( "numeric", null ), __( "offset from which to start", null ) ) , 'category' => BW_::bw_skv( null, "<i>" . __( "category ID", null ) . "</i>", __( "numeric ID of the post category", null ) ) , 'category_name' => BW_::bw_skv( null, "<i>" . __( "category-slug", null ) . "</i>", __( "category slugs (comma separated)", null ) ) , 'customcategoryname' => BW_::bw_skv( null, __( "category-slug", null ), __( "custom category slug", null ) ) , 'orderby' => BW_::bw_skv( 'date', "ID|title|parent|rand|menu_order", __( "Sort sequence", null ) ) , 'order' => BW_::bw_skv( 'DESC', "ASC", __( "Sort order.", null ) ) , 'include' => BW_::bw_skv( null, "<i>" . __( "id1,id2", null ) . "</i>", __( "IDs to include", null ) ) , 'exclude' => BW_::bw_skv( null, "<i>" . __( "id1,id2", null ) . "</i>", __( "IDs to exclude", null ) ) , 'meta_key' => BW_::bw_skv( null, __( "meta key", null ), __( "post metadata key", null ) ) , 'meta_value' => BW_::bw_skv( null, __( "meta value", null ), __( "post metadata value", null ) ) , 'post_type' => BW_::bw_skv( null, "page|post|attachment|" . __( "custom post type", null ), __( "Content type to display", null ) ) , 'post_mime_type' => BW_::bw_skv( null, "image|application|text|video|" . __( "mime type", null ), __( "Attached media MIME type", null ) ) , 'post_parent' => BW_::bw_skv( null, __( "ID" , null ) , __( "Parent ID to use if not current post", null ) ) , 'post_status' => BW_::bw_skv( null, "publish|inherit|pending|draft|auto-draft|future|private|trash|any", __( "Post status", null ) ) , 'id' => BW_::bw_skv( null, "<i>" . __( "id1,id2", null ) . "</i>", __( "IDs of posts to display", null ) ) , 'posts_per_page' => BW_::bw_skv( null, __( "numeric", null ) . "|.", /* translators: %s current number of posts per page */ sprintf( __( 'Number of posts per page. Use \'.\' for current value %1$s', null ) , get_option( "posts_per_page", null ) ) ) )); }View on GitHub View on Trac