Giving each loop post unique numbers so that WordPress would treat separately

Change your <video> id to be a class, so that there can be multiple of them on a page. Use .querySelectorAll(‘video.local-video’) to get all video elements with the class name of .local-video. Loop through all of those elements, and play them accordingly. Code: <!– Autoplay, on view video START–> <script> const localVideos = document.querySelectorAll(‘video.local-video’); // … Read more

Different date time in results of search

All the date functions reference the global $post variable, but from your code the $post variable is not being used, so that’s why the date is wrong. Try this (untested): foreach ( $total_results as $tr ) { echo get_the_time( ‘j F Y, G:i’, $tr ); }

Using Query Loop Block to list all posts under each category

Use WP_Query directly in your WP theme template files instead of a block editor. // Define custom taxonomy (category) terms $categories = get_terms(array( ‘taxonomy’ => ‘your_custom_taxonomy’, // Change ‘your_custom_taxonomy’ to the name of your taxonomy ‘hide_empty’ => false, )); // Loop through each category foreach ($categories as $category) { echo ‘<h2>’ . $category->name . ‘</h2>’; … Read more