• I building page with adverts about car.

    1. I would like have have a search engine about name, price, category, model car, year of production and etc.
    2. How i can add advers with my fields (model car, year of production Number of doors and etc.)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter inomi13

    (@inomi13)

    I want add Forms API but a have problem because i want files type number and date. Can you help me?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    i understand you are trying to add fields using the Forms API, can you paste the code you have so far?

    It will be easier to tell where the error is.

    Thread Starter inomi13

    (@inomi13)

        add_filter( "adverts_form_load", "my_adverts_form_load" );
        function my_adverts_form_load( $form ) {
            if( $form["name"] != "advert" ) {
                return $form;
            }
            
            $form["field"][] = array(            
                "name" => "my_custom_field",
                "type" => "adverts_field_text",
                "order" => 25,
                "label" => "Data produkcji:",
    			"class" => "adverts-filter-money",
                "is_required" => true,
                "validator" => array( 
                    array( "name" => "is_required" ),
                )
            );    
          
            
            return $form;
        }
    

    I want condition checking if the value entered is a date

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

The topic ‘search using other fields’ is closed to new replies.