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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)