Trevor
Forum Replies Created
-
Trevor in reply to:
Display result on the side of search boxes(Private) April 11, 2016 at 12:04 pm #42274You have this inside a Visual Composer Row? Are you using the shortcode method? For me, I applied a float left and width 33% to the form and a float:right and width 66% to the results, and they sit side by side, suggesting that you need to add a grid with two columns?
Trevor in reply to:
multiple pages result are not working(Private) April 11, 2016 at 11:52 am #42273Hi
In the form settings, I have set the form (in the Posts tab) to sort by that meta tag, but still it does not. This means that the theme is overriding this order. I took out the commented out line and returned the args bit back to how you had it. I do not know if you put this code in or it was in the template anyway:
<?php $args = array( 'posts_per_page' => 5, 'offset' => 0, 'category' => '', 'category_name' => '', 'orderby' => 'slug', 'order' => 'DESC', 'include' => '', 'exclude' => '', 'meta_key' => '', 'meta_value' => '', 'post_type' => 'post', 'post_mime_type' => '', 'post_parent' => '', 'author' => '', 'post_status' => 'publish', 'suppress_filters' => true ); $posts_array = get_posts( $args );?>
Trevor in reply to:
Nothing Found(Private) April 11, 2016 at 11:26 am #42269OK, it could be many things. On this page you can see the default settings you have showed me:
http://imagizer.imageshack.us/a/img922/1566/kBPxFV.png
And
Results Container
is set to#main
but there is no such container on the page. The container name might need to be#content
, which I can see on the page.Also, in this setting:
Enter the filename of the custom template
it is set tosearch.php
, but you may be using a different template; it looks like one calledpage-full-width.php
.Trevor in reply to:
multiple pages result are not working(Private) April 11, 2016 at 10:56 am #42263OK, you may understand better what you need. Go and edit the index.php file again, and see what i did. I commented out your code, and changed one line in the args. It is here that you need to make the order work, but I probably did it wrong.
Trevor in reply to:
Nothing Found(Private) April 11, 2016 at 10:46 am #42257Can you give me a screenshot of the Display Results settings tab?
Trevor in reply to:
multiple pages result are not working(Private) April 11, 2016 at 10:43 am #42256Can you use check your site and now see if it is sorting the correct/desired way?
Trevor in reply to:
multiple pages result are not working(Private) April 11, 2016 at 10:30 am #42253Sorry, where did you set that query_posts up?
Trevor in reply to:
multiple pages result are not working(Private) April 11, 2016 at 10:28 am #42251Can I mark this as resolved and close the thread?
Trevor in reply to:
Custom field (Advanced custom field) in results(Private) April 11, 2016 at 10:26 am #42249This reply has been marked as private.Trevor in reply to:
multiple pages result are not working(Private) April 11, 2016 at 9:58 am #42247Q1. can you tell me what that change to standard “archive” means?
A1. I think the Post Archives is expecting a page NOT to be the home page. Many sites have a static home page, and a separate blog page for the standard posts, so the URL might behttp://mysite.com/blog/
and if you have a Custom Post Type of, say, Houses, the URL might behttp://mysite.com/houses/
. In either of these, S&F would be OK using the Post Archives method. BUT, your theme (as most do) uses a custom template for the home page (it is not the standard ‘archives’ template) and by using the Archives mthod this allows you (me) to specify the actually template in use, in most cases for the home page this is index.php. In practical terms, the only difference that you will see is the id in the url.Q2. does search and filter get the order of results from standard post order? cause im looking for a way to reorder the search results /posts.
A1. Search and filter uses the date published as the order (ascending or descending). To later this, you need a very popular (free) plugin called Post Types Order. This allows you to re-order posts by dragging and dropping them. -
AuthorPosts