Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 651 through 660 (of 1,224 total)
  • Author
    Search Results
  • #129812

    Trevor
    Participant

    Could you post the entire results.php file that you are using? I assume that the part you posted above is not all of it?

    #129777

    Anonymous
    Inactive

    Hi Trevor, thank you once again for your reply!

    Yes that was the results.php code above. Could you please be more specific about how can it access the query? I’m sorry I’m not that “fluent” in PHP.

    #129677

    Trevor
    Participant

    For the pagination code, look in our plugin folder, find the templates folder, in that open the results.php in an editor and you will see a good example of how to do it. If that is what you di, my apologies. Don’t forget that it needs to access the query, to be able to count the results.

    #129598

    Anonymous
    Inactive

    Thanks for your reply Trevor. Can you help me, because now after choosing a page whole section disappears?

    results.php code as follows:

    
    <?php
    if ( $query->have_posts() )
    {
    	?>
    
    <table width="100%" border="0" cellpadding="10">
      <tbody>
        <tr class="naglowki-tabeli">
          <th scope="col">DATA PUBLIKACJI</th>
          <th scope="col"><strong>STANOWISKO</strong></th>
          <th scope="col">LOKALIZACJA</th>
          <th scope="col">WYNAGRODZENIE BRUTTO</th>
          <th scope="col">&nbsp;</th>
        </tr>
    	
    	<?php
    	while ($query->have_posts())
    	{
    		$query->the_post();
    		
    		?>
    
    		<tr class="pojedynczy-wynik-tabeli">
    			  <td><?php echo (new \DateTime($query->post->post_date))->format('Y-m-d'); ?></td>
    			  <td><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></td>
    			  <td><?php echo get_post_meta($query->post->ID,"lokalizacja",true); ?></td>
    			  <td><?php echo get_post_meta($query->post->ID,"wynagrodzenie_brutto",true); ?></td>
    		  <td><a href="<?php the_permalink(); ?>">ZOBACZ</a></td>
    		</tr>
    
    		<?php
    	}
    	?>	
    
      </tbody>
    </table> 
    	
    	<div class="pagination"><?php wp_pagenavi(); ?></div>
    
    	<?php
    }
    else
    {
    	echo "No Results Found";
    }
    ?>
    
    #129545

    Trevor
    Participant

    Easier, yes. Use either results.php, or if you want infinite scroll, use that file, but rename it to results.php

    #129448

    Trevor
    Participant

    It is because your pagination (code) is outside of the results template code. That means that Ajax is not refreshing it. Move it inside the results.php template.

    #129017

    Trevor
    Participant

    Hi

    Have you made any changes to the default results.php template that the Shortcode results method uses?

    This is explained here:

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

    #128833

    Trevor
    Participant

    Your theme uses Bootstrap 3, as far as I can see. If you want it to look like the store page, where each products has HTML like this:

    <div class="col-sm-6 col-md-4 scale-item scale-archive-item">
      <article class="post-2926 scale type-scale status-publish format-standard has-post-thumbnail hentry scale_catagory-digital-indicator scale_tag-latest wpautop">
        <header>
          <h2 class="entry-title">
    		<a href="/scales/arlyn-upscale-touchscreen-indicator/">
              <span class="m-h">Arlyn UpScale</span>
              <span class="sub-h">Touchscreen Indicator - Stainless Steel Optional</span>
            </a>
    	  </h2>
          <a href="/scales/arlyn-upscale-touchscreen-indicator/">
            <img src="/wp-content/uploads/2015/09/V9_Plastic_Digital_Indicator_front_view_transparent-240x180.png" class="attachment-scale-thumb size-scale-thumb wp-post-image" alt="" srcset="http://www.arlynscales.com/wp-content/uploads/2015/09/V9_Plastic_Digital_Indicator_front_view_transparent-240x180.png 240w, http://www.arlynscales.com/wp-content/uploads/2015/09/V9_Plastic_Digital_Indicator_front_view_transparent-263x197.png 263w, http://www.arlynscales.com/wp-content/uploads/2015/09/V9_Plastic_Digital_Indicator_front_view_transparent-350x262.png 350w, http://www.arlynscales.com/wp-content/uploads/2015/09/V9_Plastic_Digital_Indicator_front_view_transparent-165x125.png 165w" sizes="(max-width: 240px) 100vw, 240px" width="240" height="180">
          </a>
        </header>
        <div class="starting-price">Starting at $549</div>
      </article>
    </div>

    Then yes, it is possible to customise the results.php to make that layout. The first step is to follow this guide:

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

    And then you (or I) would have to edit the template.

    #128681

    Anonymous
    Inactive

    Hello, I could use some help formatting search results.

    WP version: 4.8.1
    Theme – Avada: 5.2.2
    Search & Filter Pro: 2.3.4

    I am using shortcode and have created “search-results/results.php” in the Avada folder as per instructions here:

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

    Search results seem to be working fine. However, I would like to do what I can to format the results to look like the category results on this page:

    https://shoshinbjj.com/mount/mount-top/mount-submissions/

    Here is a page with the Search & Filter box and results:
    https://shoshinbjj.com/search-results/

    Ignore the mess… I’m still getting organized etc 🙂

    Thanks for any help or guidance.

    #128351

    In reply to: No Results Found


    Trevor
    Participant

    It looks to me like you are using the Shortcode Display results method, and if so, did you customise the template by copying the results.php file from our plugin templates folder to your child theme folder, into a sub-folder called search-filter, as described here:

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

Viewing 10 results - 651 through 660 (of 1,224 total)