Plugin Directory


Opened 5 years ago

Closed 4 years ago

#1632 closed defect (duplicate)

Custom Post Types with 'exclude_from_search' set to true do not show titles in Stats

Reported by: csogilvie Owned by: tmoorewp
Priority: normal Severity: normal
Plugin: jetpack Keywords: stats
Cc: richard@…


Post type definition:

register_post_type( 'plugin_event',
			'labels' => array(
				'name' => __( 'Events' ),
				'singular_name' => __( 'Event' )
		'public' => true,
		'has_archive' => true,
		'rewrite' => array('slug' => 'events'),
		'supports' => array('title', 'editor', 'custom-fields'),
		'exclude_from_search' => true,
		'show_in_admin_bar' => false,

When I view my Jetpack Stats page on my blog, any visits to a post of this type will show up with a title of "#xxxx (loading title)".

I have verified that if I change 'exclude_from_search' to false, then the title does show up.

This might be because of a bug upstream in Wordpress, though.

Change History (3)

comment:1 @jeherve5 years ago

  • Keywords stats added
  • Owner changed from mdawaffe to tmoorewp

comment:2 @richardmtl4 years ago

  • Cc richard@… added

comment:3 @jeherve4 years ago

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.