1 vote
Accepted

Category archive page has two URLs even when default theme is active with no active plugins

For example, category SPORT is available on /sport and /category/sport. I would like to keep only one. I tried to reproduce that issue and I could confirm it's true, at least in WordPress v6.0.1 with ...
user avatar
  • 33.4k
1 vote

Image loading function not working on archive.php template

archive.php doesn't have a featured image, so this clause will short circuit your logic immediately: if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } Try ...
user avatar
  • 7,495

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