Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Nov 28, 2014 · 0 comments
Open

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

ghost opened this issue Nov 28, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 28, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants