-
AuthorSearch Results
-
September 20, 2016 at 4:22 pm #59040
AnonymousInactiveYes. We are using a shortcode.
Our setup is that we have some custom post types made in pods with custom data fields in each post. Search and Filter can return and filter the results fine using the standard results.php template. When we copy the results.php and rename it to be used as a custom results page, it works fine too.
However, when we try to customize the results page by creating a custom layout, it does not return the datafields. I have a feeling that I’m doing something really obtuse.
To be more precise, we have a custom pods post type which is identified as ‘game_site’ without the quotes. In this post type, we have a field called “game_type” which is named “game type”. If I wanted to return this specific field as an h2 tag using php echo, how would I do that?
September 20, 2016 at 8:44 am #58927In reply to: changing the search results template
AnonymousInactiveHi Trevor,
I managed to sort the issue. Your results.php display formart is in paragraphs. so I edited the code introduced divs and it worked.
I hope any other person having the problem can now sort it.
`?>
<div class=”row”>
<div class=”col-3″>
<?php
if ( has_post_thumbnail() ) {
echo ‘<p>’;
the_post_thumbnail(“small”);
echo ‘</p>’;
}
?></div>
<div class=”col-9″>
<div class=”col-5″>
<div><h2>“><?php the_title(); ?></h2></div>
<?php the_excerpt(); ?></div>
</div>
</div>
<p><?php the_category(); ?></p>
<p><?php the_tags(); ?></p>
<p><small><?php the_date(); ?></small></p>September 20, 2016 at 12:08 am #58890In reply to: Different Results.php
AnonymousInactiveYou can route specific search forms to customized results pages by following the instructions at this link:
You basically create a copy of the results.php template and place it in a directory in your theme folder, name the results.php copy to match the id number of your search form, and then customize it to fit your needs.
September 19, 2016 at 2:39 pm #58797
AnonymousInactivelike this ? : wp-content\themes\your-theme-name\search-filter\results.php
September 18, 2016 at 10:12 am #58648In reply to: Novice stuck trying to get this to work
TrevorParticipantHi Ashley
Sorry to hear of your struggles. The7 must be one of ThemeForest’s most popular themes, maybe? I think it generally needs to be used with our Shortcode method, and this documentation section explains how to customize the results and to have more than one form (by copying and renaming the results.php template after the ID of the shortcode):
(and section 2.1 after it)
This is the only other thread about The7 on our forum:
https://support.searchandfilter.com/forums/topic/search-filter-pro-the7-theme-need-help/
Note that our template is basic but I can help you with that.
Assuming that this is a live or staging site (and not localhost), the next thing (it will be tomorrow as today is not a support day, it being the weekend) would be for you to send me admin logins using a private reply, indicating which pages you are working with.
Trevor
September 16, 2016 at 5:48 pm #58472In reply to: Output category / taxonomy classes in search results
AnonymousInactiveAhh it’s ok – I figured it out. I needed to edit results.php inside the templates folder of the plugin 🙂
September 16, 2016 at 9:42 am #58358In reply to: after install site no online
TrevorParticipantHi Robert
If you are using the Shortcode Display Results method, then first please read this (if you have not already):
The results.php will require customization, which I can help with, depending on whether the site is live, staging or localhost will determine how I can help, and what the theme is that you are using (or your own written theme).
September 15, 2016 at 4:38 pm #58107In reply to: changing the search results template
TrevorParticipantWhat we need to do is to customize the results.php to make it behave like you search.php template. This is possible, but I would need some free time. Is the site on localhost, a staging site or a live web site?
September 15, 2016 at 2:50 pm #58077In reply to: changing the search results template
AnonymousInactiveresults.php template. One column and the images are too big.
unfortunately i have not hosted the site yet. i would have given the url. I will share the code.I would like to make the plugin use search.php for the display. it’s more organized.
search.php
<?php if ((function_exists('accesspress_pro_breadcrumbs') && $accesspress_pro_show_breadcrumb == 0) || empty($accesspress_pro_show_breadcrumb)) { accesspress_pro_breadcrumbs(); } ?> <h1 class="entry-title ak-container"><?php printf( __( 'Search Results for: %s', 'accesspress_pro' ), '<span>' . get_search_query() . '</span>' ); ?></h1> </header><!-- .page-header --> <div class="ak-container"> <div id="primary" class="content-area"> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <?php /** * Run the loop for the search to output the results. * If you want to overload this in a child theme then include a file * called content-search.php and that will be used instead. */ get_template_part( 'content', 'summary' ); ?> <?php endwhile; ?> <?php accesspress_pro_paging_nav(); ?> <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> </div> <?php get_sidebar('right'); ?> </div> <?php get_footer(); ?>
September 14, 2016 at 10:49 am #57810
TrevorParticipantHi Robert
I have a feeling that Divi users use the Shortcodes method to integrate S&F Pro with Divi. This still allows you to use the widget for the form (or to use a text area and put the shortcode into that) and then put the results shortcode where you need results.
I say this because other Divi users have asked me to help them customize our default results.php (which the shortcode method uses). For example:
https://support.searchandfilter.com/forums/topic/customize-result-php-with-table/
For the second part, I may have misunderstood you, but if you are trying to use a taxonomy (like category or tag) twice in the form, you cannot do that. Instead you must make a custom taxonomy and split up your hierarchies.
Here is a really awful preachy lecture I wrote 🙁 :
https://support.searchandfilter.com/forums/topic/multiple-categories-combination/#post-55166
Sorry about the tone, but the message is right and it links to good plugins. If I missed anything (I probably did, my apologies), follow up and remind me.
-
AuthorSearch Results