PHP-warning in post-template.php and no loading content on pages

The problem was that the loop related code had been removed from the template file by a mistake without me knowing. I had to add this back in: <?php if (have_posts()): while (have_posts()) : the_post(); ?> and <?php else: ?> <h2><?php _e( ‘Sorry, nothing to display.’, ‘html5blank’ ); ?></h2> <?php endif; ?>

Errors after upgrading PHP to 7.4 WordPress

That sounds like a theme problem, since you have all plugins disabled. The theme has some error, possibly some extra spaces at the top of a file. I’d change to one of the ‘Twenty’ themes and see if the problem stops. If so, contact your theme’s support area. If problem persists with one of the … Read more

My CSS suddenly doesn’t load anymore [closed]

You should remove an additional } on line 18. Try the following <?php if (!function_exists(‘understrap_scripts’)) { /** * Load theme’s JavaScript and CSS sources. */ function understrap_scripts() { // Get the theme data. $the_theme = wp_get_theme(); $theme_version = $the_theme->get(‘Version’); wp_enqueue_style(‘slider-slider-styles’, ‘https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css’); wp_enqueue_style(‘lity-style’, ‘https://cdnjs.cloudflare.com/ajax/libs/lity/2.4.1/lity.min.css’); $css_version = $theme_version . ‘.’ . filemtime(get_template_directory() . ‘/css/theme.min.css’); wp_enqueue_style(‘understrap-styles’, get_stylesheet_directory_uri() . … Read more

Error missing MySQL extension

The solution to this will require server level changes, this isn’t something you can fix by changing PHP files. Your host needs to install the mysqli PHP extension

Code snippet to display ID gives critical error

Unfortunately you can’t just copy code that plays a completely different role and replace users with posts and somehow expect this to do what you want it. The reason you get a fatal error is because you’re passing in too many arguments (3) to the filter, when there are only 2 supplied. Here’s the code … Read more