Post Navigation Elementor
Post Navigation Elementor
Post Navigation Elementor
I have actually found a really elegant solution to this myself. The issue is not with the [random-posts-list], it is with the script used to generate the [county] shortcode. Instead of using $post_ID = get_the_ID(); I should have been using $post_ID = get_queried_object_id();. This is a built-in WordPress query. With the above amend, I also … Read more
We can’t get the whole picture unless we see exactly where your code has been added and called, but I suggest to check every variables value of this line of code $is_mobile_enabled = get_field(‘mobile_enable’, ‘widget_’ . $args[‘widget_id’]); Check the value of $args[‘widget_id’], as if it may be empty. Also, it’s better to use error_logs instead … Read more
Found the issue. Needed to make all the calls for the js etc out of the Gutenberg builder as it was parsing it incorrectly.
The answer to this should be rather simple. Please visit the settings page with the url settings. Just visit it. yoursite.com/wp-admin/options-permalink.php By doing so, WordPress should trigger the “Flush-Rewrite” hook, which creates a new .htaccess with the appropriate rules. However, please also be aware that depending on your custom-post-type some hooks in your code might … Read more
Building a multisite where ACF Gutenberg blocks can either pull from main site, or if a priority flag is marked, pulls block from subsite
WP get_terms and ACF field
Query Custom Post Types on Available Dates
This code works perfectly! function delete_expired_posts() { $args = array( ‘post_type’ => ‘post’, ‘meta_query’ => array( array( ‘key’ => ‘fecha_borrado’, ‘compare’ => ‘EXISTS’, ), ), ‘posts_per_page’ => -1, ); $query = new WP_Query($args); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); $post_id = get_the_ID(); $acf_date = get_field(‘fecha_borrado’, $post_id); $acf_timestamp = strtotime($acf_date); $current_timestamp = time(); if ($acf_timestamp … Read more
Display posts in correct month order using single date custom field