• Resolved cogdog

    (@cogdog)


    This plugin is exactly what I need; though I am having to do a lot of work on the templates.

    In the template acps-results_loop.php the results for no results found, embeds the general WordPress search form, not my own custom form.

    <div class="page-content">
            <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'acps' ); ?></p>
            <?php get_search_form(); ?>
        </div>

    This would confused users, since they would not be doing a search on the right content. I ended up doing a manual shortcode call to embed the correct form

    <div class="page-content">
            <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'acps' ); ?></p>
            <?php echo do_shortcode('[acps id="1945"]');?>
        </div>

    I would think the search results would be much more useful if, at the top, it could include the custom search form with the values of the search query, allowing users to modify a result… I’l probably figure out how to do that on my own.

    It would also be useful to include a number of results found. I added mine :

    <p>There are <strong><?php echo $acps_results->post_count?></strong>  items found for <strong><?php echo $this->acps_args['s']?></strong></p>

    I still have to figure out some code to parse the taxonomy arguments.

    https://wordpress.org/plugins/advanced-custom-post-search/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Creare

    (@shane-welland)

    Hi Cogdog, you’re quite right, the results pages need some work (its been brought up in a few posts before!) I’m still in the process of adding a few extras to the results pages and I’ll take this feedback into consideration when updating it. With regards to the taxonomies, I’d suggest looking in the acps_results_template.php file as well!

    Plugin Author Creare

    (@shane-welland)

    Fixed in latest release

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Zero results Embeds the Wrong Search Form’ is closed to new replies.