Question
Hello on my wordpress site I have a custom template for category A with slug (cat-a). I created a category-cat-a.php file to give this category a custom layout and this works without a problem. I am wondering is there any ...

Question
Plugin actions $this->loader->add_action( 'wp_ajax_woo_amc_get_cart', $plugin_public, 'show_cart_items_html' ); $this->loader->add_action( 'wp_ajax_nopriv_woo_amc_get_cart', $plugin_public, 'show_cart_items_html' ); Plugin function public function show_cart_items_html(){ $type = sanitize_text_field($_POST['type']); ...

Question
I have a problem with a query on my website. When I load the page it is incredibly slow and only after over 12 seconds the content starts showing. I have installed a debug plugin and found the query that ...

Question
In phpmyadmin I often see this query that hangs with a status of "sending data": SELECT SQL_CALC_FOUND_ROWS wp2a_posts.ID FROM wp2a_posts WHERE 1=1 AND wp2a_posts.post_author IN (1) AND wp2a_posts.post_type = 'post' AND (wp2a_posts.post_status = 'publish') ORDER BY ...

Question
I know that when delete_option() or update_option() fail to perform their respective database interactions, they return false. Does anyone know why they wouldn't be able to perform these actions? It's only for specific options. Most options will work, however, a few ...

Question
I'm using the Howe's family of themes for my WordPress site. Two pages ("about" and "sample" at least one of which came with the installation) appear in my header. I'd like to add more, but I wouldn't like every page ...