CPT Columns doesn’t show categories

why ‘categorias_de_pessoas’ => __( ‘Categorias’ ), doesn’t the show the content within the categories selected to my post? This is a taxonomy called ‘categorias_de_pessoas’. That issue happened because you did not prepend the taxonomy (or array key or column name) with a taxonomy-. I.e. The correct format is: taxonomy-<taxonomy>. See WP_Posts_List_Table::column_default(). So to fix the … Read more

Thesis -style Navigation

This is how I do it in a custom theme: <h3>Select pages to include in menu:</h3> <p> <?php $page_ids = get_all_page_ids(); $current_selected = get_option(“pages_to_include”); foreach( $page_ids as $page_id ) { if( get_post_status( $page_id ) == ‘publish’ ) { $checked = ( !empty( $current_selected ) && in_array( $page_id, $current_selected ) ) ? ‘ checked=”checked”‘ : ”; … Read more

my checkbox is not saving it’s value

options.php does not automatically save in the database anything that you post to it. You must also tell the page which options it should look for in the posted data. I see that you have set option_page to admin_bar, which is half of the solution. The other half is to add the option names to … Read more

How to add the time of a post to the list of posts on the administration page?

Try this: add_filter(‘manage_posts_columns’, ‘posts_columns’, 5); add_action(‘manage_posts_custom_column’, ‘posts_custom_columns’, 5, 2); function posts_columns($defaults){ $defaults[‘your_date_col’] = __(‘Date’); return $defaults; } function posts_custom_columns($column_name, $id){ if($column_name === ‘your_date_col’){ echo the_date(); } }

Filtering posts on Post Administration Page by Week Number instead of by Month

here you go , its something i quickly cooked up and it seems to work fine: <?php /* Plugin Name: admin-filter-by-week Plugin URI: http://en.bainternet.info Description: answer to Filtering posts on Post Administration Page by Week Number instead of by Month http://wordpress.stackexchange.com/questions/19186/filtering-posts-on-post-administration-page-by-week-number-instead-of-by-month Version: 1.0 Author: Bainternet Author URI: http://en.bainternet.info */ add_filter( ‘parse_query’, ‘week_admin_posts_filter’ ); add_action( ‘restrict_manage_posts’, … Read more