Forums

Events Manager
[resolved] Search with error message (8 posts)

  1. Balders
    Member
    Posted 11 months ago #

    Hi there,

    when I use the wp inbuilt search function and enable the "Include in WordPress Searches? Yes" at em I get an error message like:

    Warning: Invalid argument supplied for foreach() in /homepages/43/d409970327/htdocs/wp-content/themes/swagger/functions/oswc-post-types.php on line 878

    When I switch to "Include in WordPress Searches? No" the error disappears.

    Any ideas?

    Cheers

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 11 months ago #

    hi,

    can I know what's in this line ?

    Warning: Invalid argument supplied for foreach() in /homepages/43/d409970327/htdocs/wp-content/themes/swagger/functions/oswc-post-types.php on line 878

  3. Balders
    Member
    Posted 11 months ago #

    Hi agelonwl,

    of course you can, thanks for helping out.

    Here we go:

    foreach($meta_fields as $meta){

    Cheers

  4. agelonwl
    Member
    Posted 11 months ago #

    this might be a theme issue then; please see this link - http://support.industrialthemes.com/viewtopic.php?f=5&t=2700

  5. Balders
    Member
    Posted 11 months ago #

    Hi again,

    is there a shortcode/widget for an event manager search only and leave the inbuilt wp search in peace?

    Cheers

  6. agelonwl
    Member
    Posted 11 months ago #

    you can use shortcode [event_search_form]

    http://wp-events-plugin.com/documentation/shortcodes/

  7. Balders
    Member
    Posted 11 months ago #

    Thanks,

    but I need a shortcode for the homepage - just a text field and a button. For the event list page the whole search form with categorys and date etc.

    Is it possible to create a custom shortcode? Or how would I do that?

    Cheers again for your patience

  8. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 10 months ago #

    at the moment, you'd have to limit the fields you display on all search forms with Settings > Formats > Search form

Reply

You must log in to post.

About this Plugin

About this Topic