1
vote
Accepted
How WP determines archive page vs single page?
TL;DR:
WordPress uses URL query string variables to select a template based on the Template Hierarchy.
General template selection steps
Permalink structures are used to create rewrite rules.
Rewrite ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
wp-query × 5715custom-post-types × 874
loop × 725
meta-query × 484
posts × 463
query × 437
php × 401
custom-taxonomy × 387
query-posts × 368
custom-field × 365
pagination × 349
categories × 284
search × 223
order × 207
post-meta × 172
get-posts × 169
functions × 158
taxonomy × 156
ajax × 154
advanced-custom-fields × 154
pre-get-posts × 147
tax-query × 146
filters × 144
woocommerce-offtopic × 129
plugins × 121