multiple record insert creating many duplicate records

For running in WP cron, you’ll define your function, and then hook the function to the cron’s name. Example: function cron_function() { … } add_action( ‘cron_hook’, ‘cron_function’ ); if ( ! wp_next_scheduled( ‘cron_hook’ ) ) { wp_schedule_event( time(), ‘one_minute’, ‘cron_hook’ ); } See WordPress developer resource for more info:

How to Set Both Category and Sub-Category Level at Root. It should also obey post rule as /category/sample-post and /sub-catgeory/sample-post?

You’ll need to define your own rewrite tag, and add the tag into the permalink structure. add_rewrite_tag() to register the new structure tag available_permalink_structure_tags filter to add to Permalinks interface post_link filter to change the URL of posts Below is untested and incomplete code, but should get you pretty far. add_action( ‘init’, static function () … Read more

Main Menu Hover is Always White

Looks like Elementor is setting the hover color for all links on the page to #5E6462, which is hard to read against the background color of the nav menu. Somewhere within Elementor the color is being set; that will need to be changed.

How to make OR condition in WP_Query

WP_Query does not handle this sort of query: use two instances of WP_Query, and then combine the results. Untested code: $posts = new WP_Query( array( ‘post_type’ => ‘post’, ) ); $post_ids = array_column( $posts->posts, ‘ID’ ); $author = new WP_Query( array( ‘post_type’ => ‘any’, ‘author’ => 123, ‘post__not_in’ => $post_ids, // prevent duplicates ) ); … Read more