• sdjentertainment

    (@sdjentertainment)


    Hey Hey,

    I’ve been building a custom WP theme locally and it’s making use of a few custom post types, custom taxonomies and custom meta boxes (using http://wordpress.org/extend/plugins/meta-box/). When I try and search using the standard search form in WP, it doesn’t pull any results from the custom meta boxes. It does however recognizes the standard WP sections (the_title, the_content) from the custom post types.

    This is a snippet of how I’ve set up a custom meta box using the plugin above.

    $meta_boxes[] = array(
    	'id' => 'position',
    	'title' => 'Position',
    	'pages' => array( 'who_we_are' ),
    	'context' => 'side',
    	'priority' => 'low',
    	'fields' => array(
    		array(
    			// Field name - Will be used as label
    			'name'  => 'Position',
    			'id'    => $prefix . "position",
    			'type'  => 'text',
    			'clone' => false,
    		),
    	)
    );

    Any help or a push in the right direction would help.

    Cheers,
    Simon

  • The topic ‘Custom Post Type/Meta Not Showing up in Search’ is closed to new replies.