Developing a “fallback” for empty wp_query results based on post dates

PHP strtotime() takes some weird string values that we can use in combination with the WP_Query date_query ‘before’ keyword. For example, we can get X posts before 1 year before tomorrow: $tomorrow_a_year_ago = wp_date( ‘Y-m-d’, strtotime( ‘-1 year +1 day’ ) ); $args = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => 5, ‘post_status’ => ‘publish’, ‘orderby’ … Read more

How to connect wordpress with db using ssl client certificate

I finally found a solution. I had to extend the wpdb class inside wp-contents/db.php. It looks like this: <?php /** * WordPress Database Access Abstraction Object * Custom DB Connection class to provide ssl connection to the database */ class ssldb extends wpdb { /** * Connects to the database server and selects a database. … Read more

WordPress and php 8.1

After hours of investigation and heavy testing I found the reason. Uninstall the php-extension php8.1-uopz changed everything. It seems uopz will break every wordpress. I hope this information will help others not to install it. Thanks to Bosco, he made me take a closer look at this issue.

techhipbettruvabetnorabahisbahis forumutaraftarium24eduseduedueduseduedueduedueduedu