Title: ignores &#039;Posts&#039; Page
Last modified: August 30, 2016

---

# ignores 'Posts' Page

 *  [nilje](https://wordpress.org/support/users/nilje/)
 * (@nilje)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/ignores-posts-page/)
 * Hi,
 * I have a page which is called ‘posts’, I think it’s from wordpress itself, because
   I didn’t set it, could that be?
    However, Display Widget just ignores it somehow,
   when I say Show at ‘Members’, the widget is shown at members and everywhere else
   not whats perfect BUT at the posts-page. The page is at the Display Widget list,
   but I can’t do anything about and with it.
 * Maybe you know whats going on, thanks for any help on this, trying for days now.
 * [https://wordpress.org/plugins/display-widgets/](https://wordpress.org/plugins/display-widgets/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [MarcGuay](https://wordpress.org/support/users/marcguay/)
 * (@marcguay)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/ignores-posts-page/#post-6495588)
 * Are you referring to the “Posts” option under the “Custom Post Types” header?
   If so, it does seem like both “Posts” and “Pages” options are not working.
 *  [MarcGuay](https://wordpress.org/support/users/marcguay/)
 * (@marcguay)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/ignores-posts-page/#post-6495589)
 * Here’s a patch that will fix this..
 *     ```
       @@ -117,16 +117,12 @@
        			$show = isset( $instance[ 'type-' . $type . '-archive' ] ) ? $instance[ 'type-' . $type . '-archive' ] : false;
        		} else if ( is_archive() ) {
        			$show = isset( $instance['page-archive'] ) ? $instance['page-archive'] : false;
       -		} else if ( is_single() ) {
       +		} else if ( is_singular() ) {
       +
        			$type = get_post_type();
       -			if ( $type != 'page' && $type != 'post' ) {
       -				$show = isset( $instance[ 'type-' . $type ] ) ? $instance[ 'type-' . $type ] : false;
       -			}
       -
       -			if ( ! isset( $show ) ) {
       -				$show = isset( $instance['page-single'] ) ? $instance['page-single'] : false;
       -			}
       -
       +
       +			$show = isset( $instance[ 'type-' . $type ] ) ? $instance[ 'type-' . $type ] : false;
       +
        			if ( ! $show ) {
        				$cats = get_the_category();
        				foreach ( $cats as $cat ) {
       @@ -353,7 +349,7 @@
            </div>
   
            <?php if ( ! empty( $this->cposts ) ) { ?>
       -    <h4 class="dw_toggle" style="cursor:pointer;"><?php _e( 'Custom Post Types', 'display-widgets' ) ?> +/-</h4>
       +    <h4 class="dw_toggle" style="cursor:pointer;"><?php _e( 'Post Types', 'display-widgets' ) ?> +/-</h4>
            <div class="dw_collapse">
            <?php
        		foreach ( $this->cposts as $post_key => $custom_post ) {
       @@ -603,7 +599,6 @@
                    'front'     => __( 'Front', 'display-widgets' ),
                    'home'      => __( 'Blog', 'display-widgets' ),
                    'archive'   => __( 'Archives'),
       -            'single'    => __( 'Single Post'),
                    '404'       => '404',
                    'search'    => __( 'Search'),
                );
       ```
   
 *  Thread Starter [nilje](https://wordpress.org/support/users/nilje/)
 * (@nilje)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/ignores-posts-page/#post-6495590)
 * thanks for the reply!
 * where should I place the code?
 *  [jeniferleetroska](https://wordpress.org/support/users/jeniferleetroska/)
 * (@jeniferleetroska)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/ignores-posts-page/#post-6495614)
 * Did you find out where you place this code?
 *  Thread Starter [nilje](https://wordpress.org/support/users/nilje/)
 * (@nilje)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/ignores-posts-page/#post-6495615)
 * no, unfortunately not… I guess you’re searching for that too? 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘ignores 'Posts' Page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/display-widgets_f8f8f8.svg)
 * [Display Widgets](https://wordpress.org/plugins/display-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/display-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/display-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/display-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-widgets/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [nilje](https://wordpress.org/support/users/nilje/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/ignores-posts-page/#post-6495615)
 * Status: not resolved