Forums Forums Search & Filter Pro Manually adding multiple values in one post meta

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Trevor
    #155731

    The format you posted:

    a:3:{i:0;s:1:"VALUE";i:1;s:1:"VALUE";i:2;s:1:"VALUE";}
    

    Is what windows, and Search & Filter therefore, uses to store arrays in post meta. So it is not possible to use your simpler code suggestions.

    It is possible that you are limited by maximum string lengths allowed by your server, in PHP or a host imposed limit (as WP Engine does for example).

    Anonymous
    #155947

    Hey Trevor, thanks for the reply!

    I figured out my problem, it was indeed the maximum string length that was causing the issue.
    Simply adding the line: php_value max_input_vars 9000 to my .htaccess enabled me to select the amount I need.

    Now I also understand the way the array was build, and am able to do this myself correctly.

    Unfortunately I run into a different issue now, everything is working but the search form loads very slowly due to there being so many choices. Any idea what I could do to improve the speed? Once the page is loaded everything works as fast as should (should I open a different ticket?).

    Trevor
    #155951
    This reply has been marked as private.
    Anonymous
    #155955

    Thanks Trevor, I will look into a few cache plugins, play around with the settings, and see what I can improve server-wise. Any indication on a releasedate or perhaps beta test round for V3? I would be interested ๐Ÿ™‚

    Trevor
    #155959

    It is well under way, but no dates.

    Anonymous
    #155986

    Alright, I’ll keep an eye on it.

    I have installed W3 Total Cache and it’s already improving the response time of the search page with +/- 85% ๐Ÿ™‚

    This thread can be closed, many thanks for your help!

Viewing 7 posts - 1 through 7 (of 7 total)