|
|
1.0 will match anything, 0.0 must be a perfect match.
|
|
|
Number of results to display per post type, taxonomy, etc.
|
|
|
/>
The default format is a flat list of results, not split out by type.
|
|
|
$post_type ) {
$checked = '';
if ( isset($included_post_types[$post_type_slug]) && '1' === $included_post_types[$post_type_slug] ) {
$checked = 'checked';
}
// Add count number to label
$post_type_counts = wp_count_posts( $post_type->name, 'readable' );
$post_type_count = $post_type_counts->publish;
$post_type_count_label = 'Published';
if ( 'attachment' == $post_type_slug ) {
$post_type_count = $post_type_counts->inherit;
$post_type_count_label = 'Uploaded';
}
?>
|
|
|
$taxonomy ) {
$checked = '';
if ( '' == $included_taxonomies || empty( $included_taxonomies ) ) {
if ( 'category' == $taxonomy_slug || 'post_tag' == $taxonomy_slug ) {
$checked = 'checked';
}
}
else {
if ( isset($included_taxonomies[$taxonomy_slug]) && '1' === $included_taxonomies[$taxonomy_slug] ) {
$checked = 'checked';
}
}
// Add count number to label
$taxonomy_count = wp_count_terms( $taxonomy_slug );
?>
|