Load More Posts Button – AJAX

After a chat session between trunks (the OP) and I, here’s what we discerned the issue was. In success within the AJAX there was a chained series of instructions. .text().prev().before(); Once the button was added into a div, this presented itself as a problem because the new posts were appearing before the button, but the … Read more

new WP_Query(), have_posts() return false in user_register hook

I resolved this by adding ‘post_status’ => ‘draft’ to the $args array, as below $args = array( ‘meta_query’ => array( array( ‘key’ => ‘sending_time’, ‘value’ => ‘on_registration’, ‘compare’ => ‘=’, ) ), ‘post_type’ => ‘_jq_notifications’, ‘posts_per_page’ => -1, ‘post_status’ => ‘draft’ ); The custom post type “_jq_notifications” default status was draft. The documentation here says … Read more

Get authors by term id or slug

Create a custom post type for authors associated with a specific tag and provide a field for author ID. Iterate over your array of authors and for each one create a new “tag author”. Finally, create a WP_Query for this post type to generate a paginated output of data associated with the author ID.

Category applied to pages, creates multiple breadcrumb entries after a search query (On the translated site)

After some time with WPML support and with some debugging/digging in the theme’s core files, I found where the breadcrumb was created. I pointed this out in the support and to also add the taxonomy on pages also in their filtered queries. I was using default WordPress queries and I was aware that taxonomies on … Read more