Inactive plugin warnings logged in log file
I had this line in mu-plugins folder, which was adding the plugin to active list… add_filter(“pre_option_active_plugins”, ‘filter_loaded_plugins’, 10, 2);
I had this line in mu-plugins folder, which was adding the plugin to active list… add_filter(“pre_option_active_plugins”, ‘filter_loaded_plugins’, 10, 2);
Embedded data and the _fields parameter in getEntityRecords
Example: I have more than one page templates that contain a very specific get_template_part( ‘form’, ‘search’ ) included. I need the inclusion of a script (let’s say jQuery UI) on all the pages that refer to a template that includes form-search.php. For a Block Theme YES! Because WP has to load the template before it … Read more
Get last post in loop in WordPress
What is the best way to offset previous posts on the same page?
The Yoast SEO plugin (free version) lets you change this information pretty handily. Divi does have the ability to alter the SEO meta information also. This article is pretty good overview: https://divicake.com/blog/getting-started-with-divi-theme-options-seo-tab/
This is likely not the “ideal” approach, but this works for me, and now I can move on to other things. If someone has a better option, I’d love to hear it, thank you. $base_args = [ ‘post_type’ => ‘crowdfunding’, ‘numberposts’ => 30, ‘posts_per_page’ => ’50’, ]; $meta_query = array( array( ‘key’ => ‘campaign_start_date’, ‘compare’ … Read more
Help with uploading file with AJAX and PHP
Here’s a sample SQL query that demonstrates this approach: SELECT MONTH(p.post_date) AS month, pm.meta_value AS shipping_method, COUNT(*) AS order_count FROM wp_posts p JOIN wp_postmeta pm ON p.ID = pm.post_id JOIN wp_woocommerce_order_items oi ON p.ID = oi.order_id WHERE p.post_type=”shop_order” AND pm.meta_key = ‘_shipping_method’ AND p.post_date >= ‘2021-01-01’ AND p.post_date < ‘2022-01-01’ GROUP BY month, shipping_method Replace … Read more
SiteGround here. It’s great that you’re exploring running “wp cron event run” as a SiteGround cron job. To ensure a smooth process, we recommend following the steps outlined in our tutorial on how to replace WordPress Cron with a real Cron job. It provides detailed instructions to help you set up your SiteGround cron job … Read more