Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mertnuhoglu

    (@mertnuhoglu)

    One 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')

    Thread Starter mertnuhoglu

    (@mertnuhoglu)

    I 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_widget

    Change the duplicated function’s name to:

    page_status_widget

    Inside 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.

    Thread Starter mertnuhoglu

    (@mertnuhoglu)

    Thank 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;
    }
Viewing 3 replies - 1 through 3 (of 3 total)