Upgrading to 4.1 fixed parse error

From the error you posted, I suspect that there was some kind of file corruption. The original file /wp-includes/post.php shouldn’t end at line 235. The file should have 5841 lines (in WP version 4.0 and 4.0.1). If it was a file corruption and the error doesn’t appear anymore, the update probably “healed” the damage by … Read more

Parse query filter in wordpress and relation

Since you are querying for multiple meta_key’s, you will want to put your meta_key queries in an array. A good example is this posting on StackExchange. For each of your functions you’ll want to replace the last three lines where you set the [‘meta_key’], [‘meta_value’], and [‘meta_relation’] with something like this: if( ! isset($query->query_vars[‘meta_query’]) ) … Read more

How to access or parse key/values that have “string”

In it’s current state you would directly get the value from the associative PHP array by directly referencing the key like so: var_dump( $form_data[‘key’] ); It’s wise to note that when you dump variables using var_dump you get information on the value type, and length. So in this case you get string(33) which indicates the … Read more