Use array as meta query value in WP_query

I have a location stored in a custom field which is an array like this: $location = array( ‘country’ => ‘United States’, ‘state’ => ‘Florida’, ‘city’ => ‘Jacksonville’); I want to perform a basic WP_query using the location’s country key as the meta key: $query = new WP_Query( array( ‘post_type’=> ‘job’, ‘post_status’ => ‘publish’, ‘meta_query’…

How should I provide data to service? D8

How should I provide data to my service correctly? For example in submitForm: $this->session->set(‘var1’, $name); $this->session->set(‘var2’, $count); $form_state->setRedirect(‘test.task’); Then I have service where I want access the data from session and save in database. Should I read data from session in controller and pass to service by parameter? I guess no but I don’t have…

Permissions working but not working

Not sure what I changed in my WordPress some days ago but today I was not able to update/install any plugin. I followed https://community.bitnami.com/t/wordpress-permissions-unable-to-create-directory/42048/3 and applied the following permissions: sudo find ~/apps/wordpress/htdocs/ -type f -exec chmod 644 {} \; sudo find ~/apps/wordpress/htdocs/ -type d -exec chmod 755 {} \; sudo chmod 750 ~/apps/wordpress/htdocs/wp-config.php sudo find…