Hot answers tagged

2 votes

WP_Query - How to get all posts of specific days of week by custom field date?

WP_Query provides no such date parameter. While you could query for/store the date of the earliest post on the site and then calculate every date for a particular day of the week in the timespan since ...
user avatar
  • 5,810
1 vote

How to change this WP logo and posts url in block editor?

You can change the logo in the block editor or site editor using the SlotFill system. Have a look at the this example code taken from
user avatar
  • 3,398
1 vote

How to make posts unqueryable/unpublish posts where ACF relationship field is an unpublished post?

You should probably check out pre_post_update. Use pre_post_update to check for a post update within your custom post type Container of Things. Check for your conditions. Then, get the connected ...
user avatar
  • 701

Only top scored, non community-wiki answers of a minimum length are eligible