Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 1,021 through 1,030 (of 1,224 total)
  • Author
    Search Results
  • #42775

    Trevor
    Participant

    Hi Bjarni

    Hopefully that little chat was useful. To recap, when editing the results.php file, your advantage is that your chosen theme uses Bootstrap 3, and as such you can take advantage of the generic Bootstrap 3 classes and add these to the HTML elements in the php file, as well as any you can see used by your theme when you inspect demo pages.

    #42768

    Trevor
    Participant

    IF you find that I was correct, and it is using that results.php file, then you would need to edit the file to meet your needs. I can show you how if you wish. But, you would need Skype to be able to do that with me.

    #42765

    Trevor
    Participant

    If you are using the shortcode method, it should be using the results.php template that is inside the plugin templates folder. You can make your own version so you can customize this. See this page:

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

    #42556

    Anonymous
    Inactive

    Hello Trevor!

    Thanks for helping me earlier. I did what you told me (copying the results.php page to /themes/Avada/search-filter) but I’m getting this error: Error: The custom template file results.php cannot be found – go to Display Results tab to fix

    I also tried placing it in the child theme but I’m still getting the same error.

    I’m not very good with php so I’m having a bit of a hard time customizing the results.php file, so I was wondering if you have an example of how a results page looks customized (code & visual) because I’m only good at HTML and CSS hehe 🙂

    Thank you!


    Anonymous
    Inactive

    Hi.
    I’m purchase search & filter pro, and this is absolutely amazing.
    But i need any things.
    1-) Is possible print custom field of custom post type in results? I try this code, but dont work in results.php from template folder:

    <?php
    	while ($query->have_posts())
    	{
    		$query->the_post();
    		
    		?>
    		<div>
    			<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
    			<p><?php the_excerpt(); ?>
    			<?php
                              $post_object = get_field('pastilha_dianteira');
                              if( $post_object ): 
    
    	                  // override $post
    	                  $post = $post_object;
    	                  setup_postdata( $post ); 
    
    	                ?>
                            <?php the_field('numeracao_pastilha'); ?>
                      </div>
                      <?php wp_reset_postdata(); // IMPORTANT - reset the $post object so the rest of the page works correctly ?>
                     <?php endif; ?>
    		</div>
    		
    		<hr />
    		<?php
    	}
    	?>

    Any suggestion?

    2-) I need in results the taxonomies from that result. Example:
    TITLE OF POST – Taxonomy 1, Taxonomy 2, Taxonomy 3
    Content
    What’s code for it?

    Sorry for english.

    Cheers.

    #41261

    Trevor
    Participant

    This file:

    \theme49465\ search-filter-results.php

    You gave me the contents of that five or six posts ago, yes? If that was the file you gave me the contents for, it is that one I mean for you to edit and replace the code with mine.

    #41258

    Trevor
    Participant

    No. Remove that functions.php stuff, you don’t need it. The code I gave you is the new search-filter-results.php file. replace the contents of that file Ross gave you with my code, but change the title (look in the code for it) as you wish.

    #41242

    Trevor
    Participant

    OK

    In the form is see that the results template is this search-filter-results.php

    This is one that you made? Using code tags from the editor (see the top button bar) before and after the code, can you paste the contents into a private reply?

    I cannot see this template file in the theme editor?

    #41036

    Anonymous
    Inactive

    Thank you for your swift reply.

    What I would like to have is a Search&Filter search result that looks exactly like the “normal” search result. I understand that this is not part of the S&F support. I had no idea if it is easy or not to achieve this. I showed you the search.php file and was hoping you say something like, “okay this is easy, just copy this part of the code in the results.php file and you’re done”. I don’t want to try your patience too far. I simply had no idea what is easy to achieve and what not.

    I don’t know what you mean with the “set a slug” and the Url.
    My problem with the archive display are:
    + The results are shown in another tab. I don’t see the search form and the results on the same page
    + You documentation says the Ajax is slower.

    #41028

    Anonymous
    Inactive

    Thank you for your reply. I’m sorry for not being more clear.

    Requirements:
    1. Place search results and search on the same page. Test Page

    2. Use the same formatting of results from my theme that display when I use the Archive display method with my default custom template Search.php Example

    I’ve already completed this task from documentation

    Copy the file wp-content\plugins\search-filter\templates\results.php from the templates folder in to the newly created folder in your theme – wp-content\themes\your-theme-name\search-filter\results.php

    But I can’t figure out how to edit the file provided Results.php file to return the same styled results as my theme’s Search.php

    Thank you for your help,

    Joshua

Viewing 10 results - 1,021 through 1,030 (of 1,224 total)