Multisite subsite expiration

Since my need is two-fold, I found these answers here with a bit more searching. To add to the Edit Site page, the best option is to add another ‘tab’ to that page. I found an answer here: Add site options UI in Multisite Sites > Infos page , which referenced a tutorial by one … Read more

Query a meta key using an array of values where the database value is a string

You could use multiple meta clauses in your WP_User_Query, along with a LIKE comparison. Something like $args = array( ‘role’ => ‘member’, ‘meta_query’ => array( ‘relation’ => ‘OR’, array( ‘key’ => ‘specializations’, ‘value’ => ‘doctor’, ‘compare’ => ‘LIKE’, ), array( ‘key’ => ‘specializations’, ‘value’ => ‘researcher’, ‘compare’ => ‘LIKE’, ), ), ); $found_users = new … Read more

Broken links on terms list page

However, for my taxonomy the links do not have the post_type argument Yes, and it’s because that argument does not exist in your submenu slug or relative URL (the 5th parameter for add_submenu_page()), therefore WordPress would not know that you’re targeting your post type, and WordPress also would not add that argument to the links … Read more

Custom Sort Order for Custom Post Type Taxonomy

Use usort with a custom callback, like this: function compare_term_order_numbers( \WP_Term $a, \WP_Term $b ) : int { $order_number_a = get_field( ‘order_number’, $a ); $order_number_b = get_field( ‘order_number’, $b ); return strcmp( $order_number_a, $order_number_b ); } usort($terms, ‘compare_terms’ ); Note that this assumes get_field returns a plain string, not an object, that each term has … Read more

Changing my URL in General Settings cause the site to crash

The first domain listed in your question has the wp-admin slug, the 2nd doesn’t. You shouldn’t be making that change. Hopefully it was just a typo, however if that’s what you’re actually doing that is likely your problem. Also, you should be changing all instances of the old domain http://20.210.236.41 to the new domain WITH … Read more