Monthly Archive: September 2012

Get customize categories in wordpress 0

Get customize categories in wordpress

The following example will show the categories with checkbox <?php $args=array( ‘child_of’ => ‘1’, ‘hide_empty’ => ‘0’ ); $categories = get_categories($args); foreach($categories as $key => $value){ ?> <label><input name=”escorts_category[]” value=”<?php echo $categories[$key]->cat_ID; ?>” type=”checkbox”>...

Add Custom Post Type Counts to the Dashboard 0

Add Custom Post Type Counts to the Dashboard

we have several ways to add custom post type counts to the dashboard including right_now_content_table_end. For Example: function add_area_counts() { if (!post_type_exists(‘escorts’)) { return; } $num_posts = wp_count_posts( ‘escorts’ ); $num = number_format_i18n( $num_posts->publish...