mertnuhoglu
Forum Replies Created
-
Forum: Plugins
In reply to: [Edit Flow] Dashboard Widget for Pages and Custom Post TypesOne more change is required. Change the following line:
$filter_link = $this->filter_posts_link( $status->slug ) > $filter_link = $this->filter_posts_link( $status->slug, $post_type='page')Forum: Plugins
In reply to: [Edit Flow] Dashboard Widget for Pages and Custom Post TypesI solved the problem. Here are the instructions if you need it:
Inside wp-content/plugins/edit-flow/modules/dashboard/dashboard.php
Find this line:
wp_add_dashboard_widget( 'post_status_widget', __( 'Unpublished Content', 'edit-flow' ), array( $this, 'post_status_widget' ) );Add the following line below (inside if clause):
wp_add_dashboard_widget( 'page_status_widget', __( 'Unpublished List Reviews', 'edit-flow' ), array( $this, 'page_status_widget' ) );Copy the following function:
function post_status_widgetChange the duplicated function’s name to:
page_status_widgetInside that function find the following line:
$post_count = wp_count_posts( 'post' );Change it to:
$post_count = wp_count_posts( 'page' );This is enough. If you want to improve the styling as well, then open lib/dashboard.css under the current directory. Copy all the lines containing post_status_widget and change those selector names to page_status_widget.
Forum: Themes and Templates
In reply to: [P2] Change width of content areaThank you, this made it.
But there is one thing more. If I hide the sidebar, this style will be overridden by inline css. In order to prevent it to be overridden, I put the following style declaration:
body #header, body #footer, body #wrapper { width: 1200px; }