Hi guys,
Great plugin, i am trying to fill the pt field with posts instead of custom post types this is the code i currently have:
'events',
'posts_per_page' => -1
)); ?>
<?php foreach ($events as $event){
$eventarray[$event->post_name] = $event->post_title;
} ?>
<?php // print_r($eventarray); ?>
<?php do_action( 'facetious', array(
'submit' => 'Search',
'fields' => array(
'pt' => array(
'label' => 'Event',
'options' => $eventarray,
'all' => 'All Events'
),
's',
'talk_type',
)
) ); ?>
This only prints out the search field and the taxonomy field called talk_type, it doesn't echo anything out for the pt field even though there is an array there?
Also another question am i able to search custom fields? or is there anyway i can make it search custom fields?
Regards
Nathan
Hi guys,
Great plugin, i am trying to fill the pt field with posts instead of custom post types this is the code i currently have:
'events', 'posts_per_page' => -1 )); ?>This only prints out the search field and the taxonomy field called talk_type, it doesn't echo anything out for the pt field even though there is an array there?
Also another question am i able to search custom fields? or is there anyway i can make it search custom fields?
Regards
Nathan