Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro forms loop

Viewing 2 posts - 1 through 2 (of 2 total)
  • distinct
    #15100

    Hi There,

    how can i loop through all the search & filter forms i have created and output the search form number normally shown in the shortcode section?

    Thanks in advance

    Ross Moderator
    #15101

    Here is a query to grab all your search forms (taken from “search-filter-pro/includes/class-search-filter-widget.php”):

    $custom_posts = new WP_Query('post_type=search-filter-widget&post_status=publish&posts_per_page=-1');

    The number you reference is just the ID of the Post (a search form is actually a custom post type)…

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Search & Filter Pro’ is closed to new topics and replies.