Need a WordPress license manager plugin
Need a WordPress license manager plugin
Need a WordPress license manager plugin
You can use get_the_ID() to retrieve the current page’s ID. $current_page_id = get_the_ID(); $args = array( ‘post_type’ => ‘page’, ‘posts_per_page’ => -1, ‘post_parent’ => ‘2’, ‘post__not_in’ => array( 4, $current_page_id ), ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order’ ); This kind of ID exclusion may cause query performance issues, especially when you have a great number … Read more
How can I filter Query Loop to show only posts in current category?
Blog page only shows one post
How to get rid of a blank space where the featured image used to be?
How to add CPT in Elementor pro search template
Why is my JS not working on initial load?
Try this //functions.php function disable_all_block_settings($metadata) { if ($metadata[‘name’] === ‘core/image’) { $metadata[‘supports’] = []; $metadata[‘styles’] = []; } return $metadata; } add_filter(‘block_type_metadata’, ‘disable_all_block_settings’);
WordPress current post functions inside loop doesn’t work anymore, are they incompatible with php 8.0?
This is happening because in the function the first parameter is named $content and you use it as HTML content: function add_social_share_buttons($content) { …. // Append the share buttons HTML to the content $content .= $share_buttons; return $content; } But the first parameter of a shortcode callback is not a string of content, it’s an … Read more