WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a number of custom post types for which the admin can tag each separate posts. The problem : None of the posts show upon front-end search query with any of the tags... Is this normal ? have I not configured my custom type properly ? below my post type registration:

$args = array(
'labels'             => $labels,
'public'             => true,
'publicly_queryable' => true,
'show_ui'            => true,
'show_in_menu'       => true,
'query_var'          => true,
'taxonomies'         => array('post_tag'),
'rewrite'            => array( 'slug' => 'enseigne' ),
'capability_type'    => 'post',
'has_archive'        => true,
'hierarchical'       => false,
'menu_position'      => 7,
'menu_icon'          => $theme_url . '/images/enseignes16x16.png',  
'supports'           => array( 'title', 'author', 'editor', 'thumbnail','comments')  );
register_post_type( 'enseigne', $args );
share|improve this question
do you mean that you search for the tag name and you get no results? – Mark Kaplun Dec 1 '13 at 8:46
Yes, Mark,That's exactly the issue.. :( Say that I tagged a custom post with the word 'shop', search the site from the front-end with it,: it returns no results (to illustrate the issue, the tag 'shop' is only used with this given post, which is a custom post type....) – JMB Dec 1 '13 at 8:56

This is normal functionality of wordpress, the default built in search is done only in the title and content of a post.

share|improve this answer
HI Mark, & thanks for your quick headsup. I thought as much, but haven't found anything on the forum on how to include custom post type content / tags in the front-end search. I'm sure I could use an action hook, but am a really newbie at this. Any idea to get me started ? Many thanks, – JMB Dec 1 '13 at 9:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.