Navigation

    WPFTS Pro Main Site

    WPFTS Community Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Webwerkplaats
    Get WPFTS Pro today with 25% discount!
    W
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 1
    • Groups 0

    Webwerkplaats

    @Webwerkplaats

    1
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Webwerkplaats Follow

    Best posts made by Webwerkplaats

    • RE: Number of search results

      i feel stupid now...YES! It works...

      posted in Bugs and Fixes
      W
      Webwerkplaats

    Latest posts made by Webwerkplaats

    • RE: Number of search results

      i feel stupid now...YES! It works...

      posted in Bugs and Fixes
      W
      Webwerkplaats
    • RE: Number of search results

      I'm sorry, no, it doesn't help.
      This site is weird. I have made prototype on 1 server. Then copied it 1:1 to another server. There some links don't work. Previous page, Next page pagination and the Divi Theme builder only work when i set permalinks in Wordpress to "Simple". When i change permalinks to "Post Name" or any other, the site misbehaves. Can't figure it out. Maybe this is also the reason the site doesn't "listen" to my code or your code to expand the number of search results.
      Thanks for the help but it seems the error is not in your plugin.

      posted in Bugs and Fixes
      W
      Webwerkplaats
    • Number of search results

      Does WPFTS limit number of search results?
      I have set Settings>Read to 100 posts (in WP Admin)
      i have added to my child theme's functions.php:
      function change_wp_search_size($query) {
      if ( $query->is_search ) // Make sure it is a search page
      $query->query_vars['posts_per_page'] = 50; // Change 10 to the number of posts you would like to show
      return $query; // Return our modified query variables
      }
      add_filter('pre_get_posts', 'change_wp_search_size'); // Hook our custom function onto the request filter

      But i only get 5 results (always, for any keyword, even if there are more results)

      Kind regards, Marco

      posted in Bugs and Fixes
      W
      Webwerkplaats