How to add another parameters to WP_Query?

I need to do something like that: $postsOrder = get_sub_field(‘posts-ordering’); if ($postsOrder = ‘post_views_count’) { $queryPopular = array ( ‘meta_key’ => ‘post_views_count’, ‘orderby’ => ‘meta_value_num’, ); } $query = new WP_Query( array( ‘posts_per_page’ => $postsCount, ‘post_type’ => $postsType->name, ‘order’ => ‘DESC’, ‘orderby’ => $postsOrder, ‘taxonomy’ => $postsTaxonomy, $queryPopular ), ); The point is that if…

Must I change the admin user email address while changing the general email address?

I changed the email at Settings > General from me@gmail.com to info@mysite.com. It seems like the email didn’t change, although I received the confirmation email to change. I’m still receiving emails from me@gmail.com. Do I still need to change the Administrator email under Users to info@mysite.com for the change to take effect? Using WP 5.1.3

how programmatically update the src image field, in the webform element type Image Select?

I am programming an wizard with Webform in Drupal 8 that on the first page the parcel identifier is typed and when it is passed to the second page, an image generated by geoserver is displayed with the selected parcel and the ones it intercepts. this is the wms petition $wms_parcela =”http://deltha:8080/geoserver/catastro/wms?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=catastro:v_ps &WIDTH=400&HEIGHT=400&BBOX=$bbox2″; I need…