AnonymousInactive
Bonjour Maxime,
Comment avez vous réaliser le résultat de la page :” http://maximegiraud.fr/fpe/films/”
Je cherche comment faire pour la disposer en Grid dans la page results.php.
Merci de votre aide .
Johnny
AnonymousInactive
Is there a way of grouping sets of fields within a search form?
I have a form, included in my template via the shortcodes (for both form and results), which contains a search fields, and then a series of taxonomy fields.
I’d like to arrange it (in a simplified way) something like:
<div id="search">
<h2>Search:</h2>
<ul>
<li class="sf-field-search ~~ etc.
</ul>
</div>
<div id="filter">
<h2>Filter by:</h2>
<ul>
<li class="sf-field-taxonomy-xx ~~ etc.
<li class="sf-field-taxonomy-xx ~~ etc.
<li class="sf-field-taxonomy-xx ~~ etc.
<li class="sf-field-taxonomy-xx ~~ etc.
</ul>
</div>
It’s easy to do if I create two seperate forms and include the shortcodes at the ul levels in my example, but then they don’t co-operate when it comes to results.
Is there a template (like there is for results.php) they we can modify?
AnonymousInactive
Hey Ross,
same results, even when using the standard results.php, having only WooCommerce, ACF and Search and Filter activated, using hard-coded shortcode and using vanilla wordpress/storefront themes… It usually works fine until cache rebuild hits about 2500 of the mentioned 4000 products. Then suddenly it says no results found. Really weird, we’ve invested a lot of time into the issue and hope we can somehow get it fixed.
If you have any input, idea, whatsoever, we’d be really thankful!
Sebastian
Hey Benoit
Try the following:
1)
Change the results container to:
#portfolio-grid
2)
Lets make a new template only for S&F results, because we want to make some customisations and not affect the rest of the site…
So duplicate the file page-Portfolio3Cols-filterable.php
and rename this to search-filter-results.php
Then, via email, can you send me this file?
Thanks
Hi Jeff
I did a quick test as I hadn’t personally used that WP function before.
If you are using the shortcode method for displaying results, then edit your results.php template and on line 52, after the $query->the_post()
add it there.. so the start of your while loop should look like:
<?php
while ($query->have_posts())
{
$query->the_post();
?>
<?php echo get_post_mime_type(get_the_ID()); ?>
Notice I also added get_the_ID()
which is sometimes not necessary but a good way to it.
Now you can access what file type they are 🙂
Thanks
How are you using results.php?
Can you send me a link to the page?
Thanks
AnonymousInactive
Fatal error: Call to a member function have_posts() on a non-object
How can i resolve this.
This is showing in results.php
AnonymousInactive
hi ross,
i don’t think so, because i copied the loop-single-topic.php into results.php and this is what i get.
any ideas what can be wrong?.
another thing is that after getting the results the search form stops working.
AnonymousInactive
hmmmm ok & SORRY! I think there was something wrong with the results.php …. deleted everything and now it seems to word again.