WordPress wp_query() basic question about args

Your 3rd option is correct. $args3 = array( ‘posts_per_page’ => 9, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’, // If you’re only specifying one. Use array( ‘projects’, ‘post’ ); for many. ‘post_type’ => ‘projects’, // This is the correct syntax for a taxonomy query. ‘tax_query’ => array( array( ‘taxonomy’ => ‘projects_categories’, ‘terms’ => $cat_id, ), ), … Read more

Rename a slug label

As SallyCJ mentioned, gettext is really the only option you have with this, because the Slug labels are hardcoded in the Core of WordPress. https://core.trac.wordpress.org/browser/tags/5.2/src/wp-admin/edit-tags.php#L439 Here is a snippet I wrote and tested that should work for you, and it will only run on the backend and only on the two pages where you will … Read more