-
AuthorSearch Results
-
August 4, 2016 at 10:27 am #53378
In reply to: How to edit HTML output of "search result"?
AnonymousInactivesorry,I didin’t check your files properly,
I found my target code on results.php.
I try by myself for a while.Let me talk to you if I’m stuck again,
ThanksAugust 4, 2016 at 8:56 am #53357In reply to: Grouping posts by year
TrevorParticipantThe date type field in S&F seems allow only a year drop down select form element. You can sort by date, but cannot group them in any way (it is not possible to add a header for each year for example). At least, you cannot do this easily. With the shortcode results method, you can have results.php file that you can edit. As long as the posts were already sorted by date, it WOULD be possible (not by us) to write PHP code to extract the year from the date and compare this to the previous post, and make a new heading if it had changed.
You COULD also have a list of years in a column where the links in them had the necessary code in to send the chosen year to the results. Again, not something we would do for you.
August 4, 2016 at 8:44 am #53352In reply to: Not results found with Uncode theme
TrevorParticipantThe first step is to have your own copy of results.php in the theme folder, as explained here:
Do you have an example page in the desired format I can see?
August 3, 2016 at 6:45 pm #53303In reply to: Pagination does not match theme
TrevorParticipantDid you copy the results.php file to your theme?
August 3, 2016 at 4:29 pm #53285In reply to: Divi Theme results styling help please
TrevorParticipantHi Connie
First question. Did you make your own custom results.php file?
As here:
As you are not too far north of me, if you have a mic or webcam, I can show you to start you off.
August 3, 2016 at 8:09 am #53217In reply to: How to edit HTML output of "search result"?
TrevorParticipantWhich Display Results method are you using? You should not be using Custom, as this is reserved, for Shortcode I can show you how, the other methods use templates from your theme, so you would need to investigate how to modify them. The shortcode method output can be customized, and to start with read the documentation and make your own custom results.php file:
August 2, 2016 at 8:17 am #53061In 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.
-
AuthorSearch Results