-
AuthorSearch Results
-
August 2, 2016 at 8:17 am #53061
In reply to: Cannot connect my custom result page
TrevorParticipantYou are not able to show me the page URL? 🙁 This makes it almost impossible to show you how.
Did you follow these instructions for a custom results.php file?
Then you must look at an example of a results in a table page in your theme and edit and re-code the results.php file to make it look and work like your example theme page.
July 28, 2016 at 9:13 am #52392In reply to: Results only show 2 posts
TrevorParticipantHi Stephanie
Is this with you using the Shortcode method?
If so, did you do this:
And, having copied the results.php file there, if you open it, you can see the different parts and you can re-arrange it. OR if you have a sample page of what it needs to look like from your theme, I can write it for you.
July 21, 2016 at 3:54 pm #51832In reply to: Display results in a grid view
AnonymousInactiveTrevor, thanks for the reply. I’m using the shortcode method. I’d appreciate it if you can tell me how to work with the results.php file.
I managed to find the follow code from the Enfold forum:
<?php global $avia_config; /* * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory. */ get_header(); $results = avia_which_archive(); echo avia_title(array(‘title’ => $results )); ?> <div class=’container_wrap container_wrap_first main_color <?php avia_layout_class( ‘main’ ); ?>’> <div class=’container’> <main class=’content template-search <?php avia_layout_class( ‘content’ ); ?> units’ <?php avia_markup_helper(array(‘context’ => ‘content’));?>> <div class=’page-heading-container clearfix’> <section class=”search_form_field”> <?php echo “<h4>”.__(‘Andere zoekopdracht’,’avia_framework’).”</h4>”; echo “<p>”.__(‘Vul hier Uw nieuwe zoekopdracht in:’,’avia_framework’).”</p>”; get_search_form(); echo “<span class=’author-extra-border’></span>”; ?> </section> </div>
Do you know exactly where in the results.php template that I can paste this into? Or would this code even work in the first place if I want to display the results as a grid?
I’m assuming I would need to place the above code at some place in this section, correct?
<?php while ($query->have_posts()) { $query->the_post(); ?> <div> <h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5> <br> </div> <hr />
Thanks for your help!
July 21, 2016 at 11:14 am #51794In reply to: Display results in a grid view
TrevorParticipantIt depends on what template is being used for the results. If you are using the shortcode method, it uses our results.php template. You can edit this to give you a grid (you can modify it to look and behave like a theme template). If you are using as an archive or Post Archive methods, they use your theme’s templates, in which case uses one that has a grid.
July 21, 2016 at 10:57 am #51790In reply to: Issue – Stray Links On Page
TrevorParticipantHi
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.
July 20, 2016 at 5:18 pm #51732In reply to: Shortcode results: don't display results until click
TrevorParticipantHi
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?
July 20, 2016 at 5:12 pm #51731In reply to: Issue – Stray Links On Page
TrevorParticipantHave 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 🙁
July 19, 2016 at 11:17 am #51590In reply to: Field relationships not working correct
TrevorParticipantYes.
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?
July 19, 2016 at 11:05 am #51588In reply to: Field relationships not working correct
TrevorParticipantNo, 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.
July 12, 2016 at 11:11 pm #51002In reply to: Use Multiple Results.php Templates
TrevorParticipantAlso in the docs.
Instead of
results.php
, if your form is id 545, for example, you can use545.php
and so on. -
AuthorSearch Results