Classic Theme Loop Template Parts

Build or audit classic theme loops and PHP template parts for WP 7.1 without block/FSE assumptions. Covers the main Loop with `have_posts()` and `the_post()`, archive/search/single/page content choices, `get_template_part()` with `$args`, `content-none.php`, `post_class()`, secondary `WP_Query` loops with `wp_reset_postdata()`, `rewind_posts()`, pagination, single post navigation, and common bugs such as `query_posts()`, nested loops without reset, raw globals in template parts, and missing no-results states.

Lonsdale201 Updated

File contents

Lonsdale201/wp-agent-skills/tree/main/theme-development/classic-theme-loop-template-parts commit 93dd61f52a

Frequently asked questions

npx skillmds@latest add lonsdale201/classic-theme-loop-template-parts