Trevor

Forum Replies Created

Viewing 10 posts - 31,671 through 31,680 (of 32,056 total)
  • Trevor in reply to:
    Display result on the side of search boxes
    #42274

    You 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
    #42273

    Hi

    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
    #42269

    OK, 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 to search.php, but you may be using a different template; it looks like one called page-full-width.php.

    Trevor in reply to:
    multiple pages result are not working
    #42263

    OK, 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
    #42257

    Can you give me a screenshot of the Display Results settings tab?

    Trevor in reply to:
    multiple pages result are not working
    #42256

    Can 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
    #42253

    Sorry, where did you set that query_posts up?

    Trevor in reply to:
    multiple pages result are not working
    #42251

    Can I mark this as resolved and close the thread?

    Trevor in reply to:
    Custom field (Advanced custom field) in results
    #42249
    This reply has been marked as private.
    Trevor in reply to:
    multiple pages result are not working
    #42247

    Q1. 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 be http://mysite.com/blog/ and if you have a Custom Post Type of, say, Houses, the URL might be http://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.

Viewing 10 posts - 31,671 through 31,680 (of 32,056 total)