Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 911 through 920 (of 1,224 total)
  • Author
    Search Results

  • Anonymous
    Inactive

    Yes. 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?

    #58927

    Anonymous
    Inactive

    Hi 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>

    #58890

    In reply to: Different Results.php


    Anonymous
    Inactive

    You can route specific search forms to customized results pages by following the instructions at this link:

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results

    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.

    #58797

    Anonymous
    Inactive

    like this ? : wp-content\themes\your-theme-name\search-filter\results.php

    #58648

    Trevor
    Participant

    Hi 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):

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results

    (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

    #58472

    Anonymous
    Inactive

    Ahh it’s ok – I figured it out. I needed to edit results.php inside the templates folder of the plugin 🙂

    #58358

    Trevor
    Participant

    Hi Robert

    If you are using the Shortcode Display Results method, then first please read this (if you have not already):

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results

    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).

    #58107

    Trevor
    Participant

    What 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?

    #58077

    Anonymous
    Inactive

    results.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(); ?>
    #57810

    Trevor
    Participant

    Hi 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.

Viewing 10 results - 911 through 920 (of 1,224 total)