Skip to content

Drop down with custom post type posts instead of custom post types #25

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions