• rolyestemonio

    (@rolyestemonio)


    Hi,

    I added some code to query the Production Seq. Number like this :

    if (isset($_GET['plate_ending'])) {
    				if ($_GET['produc_seq']) {
                                            $meta_query = array_merge($meta_query, array(array('key' => 'decode_string','value' => $_GET['produc_seq'], 'compare' => 'LIKE', 'type' => 'text')));
    				}
    			}

    but it sames not working when i access link like http://www.mydomain.com/?s=cars&car=1&produc_seq=69, means all the field of Production Seq. Number that contain 69 should be displayed.

    Could you help me this matter? Your helps is highly appreciated.

    PS: Production Seq. Number is under Specs on the plugin.

    Thanks.

    http://ww.wp.xz.cn/extend/plugins/car-demon/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author theverylastperson

    (@theverylastperson)

    I think your first line should be

    if (isset($_GET['produc_seq'])) {

    Everything else looks right to me.

    In the near future I’m going to make a few changes that will make it easier to add searchable fields and to customize the options list.

    Thread Starter rolyestemonio

    (@rolyestemonio)

    I already try it but it only display all the post. What is the problem with that?

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

The topic ‘Search Query’ is closed to new replies.