Hi
Can you post here your modified results.php code? To make sure that the code you post here does not get mangled by the forum script ….
Before the block of code and after it needs to be a code tag. On my screen, above where I am typing this, I can see the formatting buttons (bold, italic etc) and the last but one is the code tag button. Press this once before and once after the code. You will see it actually types a ‘back tick’, if you can see the button bar that is. Otherwise, on my keyboard, the symbols button to the left of the 1 key also types the same back tick.
Hi
Sadly the code you posted has gotten mangled by the forum script 🙁
Before the block of code and after it needs to be a code tag. On my screen, above where I am typing this, I can see the formatting buttons (bold, italic etc) and the last but one is the code tag button. Press this once before and once after the code. You will see it actually types a ‘back tick’, if you can see the button bar that is. Otherwise, on my keyboard, the symbols button to the left of the 1 key also types the same back tick.
Can you re-post the results.php code?
Have you made any changes to the results.php file, as detailed in the documentation:
http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/
NB, this forum doesn’t work with replies by email 🙁
AnonymousInactive
Hi – I am using a shortcode form and shortcode results on the same page (two separate columns). I am also using your template results.php file. Right now, as soon as you go to the page, it shows the form, and all entries that are available under results… then, when you click on an option in the form, it starts to actually filter the proper results.
Is it possible to have the results shortcode not actually display any results until the first option is clicked on the form? (I am also using auto submit). I would like the results area to just be blank until someone starts interacting with the search form.
Yes.
The results.php is the generic default catch all file.
If your form has an ID, say, of 15, the specific results file would be 15.php
So, you can have many results files, each matching its own form in name == id
Can I close this and mark it resolved?
No, not a stupid one. It is entirely logical. I should have thought of that. Too hot here.
So, as per the docs:
Customising the Results
If you wish to customise the display of your results, you must override the default template that is being used by Search & Filter:
Create a folder in your theme folder called search-filter.
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
From now on, Search & Filter will load this version of the template instead of its own – so you can make any customisations that are necessary.
Also in the docs.
Instead of results.php, if your form is id 545, for example, you can use 545.php and so on.
AnonymousInactive
Currently I am displaying my results in a list format and want each item to link to its file URL, but it currently links to the file attachment page. I have spent a long time searching for solutions but nothing.
Here is the code I am working with in results.php:
<div class="results">
<?php
while ($query->have_posts())
{
$query->the_post();
?>
<div class="thumbs">
<a href="<?php the_permalink(); ?>">• <?php the_title(); ?></a>
<?php
}
?>
</div>
</div>
AnonymousInactive
I am using this plugin to display media on my website. I have separate pages for photos and documents. I have the photos page working well and manipulated results.php to display thumbnails that link to attachment pages. These thumbnails are displayed in a grid.
I would like to have the documents page utilize a new template, a list rather than a grid. This can be done in the results.php file, however if I make any changes it happens in the photos page as well. Thank you!
What Display Results method are you using? If you are using the Shortcode method, then you need to follow the instructions on Customising the Results (about the file results.php) found on this page of the documentation:
http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results
If you are using as an archive or Post Type Archive, those strings are provided by your theme.