1
vote
WP Query filtering by custom category not showing all relevant posts
@jacob-peattie answered the question in his comment - I used the wrong key to set the number of posts my query generates. Swapping numberposts with posts_per_page solved the issue.
Here's the final ...
1
vote
Accepted
Add taxonomy or category slug to custom post types URL
You would do it by assigning the taxonomies when registering the post type:
'taxonomies' => [ 'taxonomy1', 'taxonomy2', ..etc ],
https://developer.wordpress.org/reference/functions/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
custom-post-types × 10290custom-taxonomy × 2123
wp-query × 874
custom-field × 855
permalinks × 658
posts × 575
loop × 520
categories × 513
php × 506
plugins × 458
taxonomy × 453
metabox × 431
customization × 421
url-rewriting × 404
plugin-development × 394
post-meta × 325
advanced-custom-fields × 306
functions × 295
pagination × 288
custom-post-type-archives × 287
templates × 266
archives × 248
terms × 235
rewrite-rules × 223
search × 219