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.

How to insert crm php code in wordpress?

You need to add your code in functions.php inside wp-content/themes/your_theme_directory/ You can add wordpress hooks into this file, upload your CRM SDK files into this directory, and your integration will live there. Also, you could look for any existing (possibly commercial) wordpress plugins, that allows integration with your CRM.

techhipbettruvabetnorabahisbahis forumuedueduedueduedueduedusedueduedu