What must i consider if I wish to develop a form that searches through custom publish types, i.e. a totally reconstructed form? Creating the particular form and it is elements isn't any problem however the next steps raises lots of tricky questions for example 1. How do i pass $_GET data to a different file maintaining WP's permalinks intact? and a pair of. How do i process the posts without needing to produce a pyramid of if claims and rather use WP's own core benefits? Looked for hrs for any guideline.

Try searching in the code below and set your version from it within the functions.php file. This will work perfectly. You may have to exchange the ‘ and ’ with apostrophes ‘.

add_action(‘init’, ‘product_register’);

function product_register() {
$args = array(
‘label’ => __(‘Products’),
‘singular_label’ => __(‘Product’),
‘public’ => true,
‘show_ui’ => true,
‘capability_type’ => ‘post’,
‘hierarchical’ => false,
‘rewrite’ => true,
‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’)
);

register_post_type( ‘product’ , $args );
}
add_action(“admin_init”, “admin_init”);
add_action(‘save_post’, ‘save_price’);

function admin_init(){
add_meta_box(“prodInfo-meta”, “Product Options”, “meta_options”, “product”, “side”, “low”);
}

function meta_options(){
global $post;
$custom = get_post_custom($post->ID);
$price = $custom["price"][0];
echo ‘<label>Price:</label><input type=”text” name=”price” value=”‘. $price .’” />’;
}

function save_price(){
global $post;
update_post_meta($post->ID, “price”, $_POST["price"]);
}
// custom table columns
register_taxonomy(“catalog”, array(“product”), array(“hierarchical” => true, “label” => “Catalogs”, “singular_label” => “Catalog”, “rewrite” => true));