Hot answers tagged

1

What makes this annoying is that the count is a wp_term_taxonomy table. So the way to do this is a custom query: function wpse340250_term_count( WP_Term $term, $post_type) { $q_args = [ 'post_type' => $post_type, 'nopaging' => true, // no limit, pagination 'fields' => 'ids', // only return post id's instead of full ...


1

Had the same problems here and there seems to be no movement on wordpress site. In my particular situation where for single blogposts the structure /blog/%postname%/ was needed this solution https://kellenmace.com/remove-custom-post-type-slug-from-permalinks/ ended in a bunch of 404s But together with this wonderful approach, which is not using the ...


Only top voted, non community-wiki answers of a minimum length are eligible