WordPress custom post type -> query and sort by custom field with multiple values, then published date

You can use the relation = OR in your meta_query args. Something like this: $args = [ ‘post_type’ => ‘blogs’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => 24, ‘meta_query’ => array( ‘relation’ => ‘OR’, ‘featured_clause’ => array( ‘key’ => ‘featured_post’, ‘value’ => ‘yes’, ‘compare’ => ‘=’ ), ‘not_featured_clause’ => array( ‘key’ => ‘featured_post’, ‘value’ => ‘no’, ‘compare’ … Read more

Favicons with WP in a specific folder in 2023

In WordPress in 2023, you can place your favicons in a specific folder by uploading them to the root directory of your theme or by using a custom folder within your theme directory. Then, you can reference the favicon in your theme’s header.php file using the appropriate HTML code.