According to the Theme Guide, full loops should be used, even on single templates.
Full loops must be used in all templates. Just calling
the_post()
in a
template likesingle.php
orpage.php
is not enough.
So yes, it’s a best practice to use full loops.
Related Posts:
- Is including the loop necessary for page.php? [duplicate]
- When and Why is is_singular(‘my_cpt’) true while in_the_loop() is false?
- loop not showing up when using a custom page template
- Custom page template
- Getting page ID inside loop
- Get Pagination (WP-PageNavi) not to work
- Loop and Page template : my WP_query don’t take args
- Create a loop that gets pages with their template
- Running a loop with a custom query string on a custom page template
- How to load all pages into one page with their templates
- Custom Loop Using Shortcode in Custom Page Template
- Do I need to use The Loop on pages?
- Page-loop is looping content from custom loops on the same site. How to avoid that?
- Multiple get_posts() queries on one page
- Print the whole page?
- excerpt not showing up
- Custom Header added within Dashboard pages, is this possible with custom template files?
- Duplicated tag in loop
- get the value for ALT is we check to see if an actual ALT value is set, if not we use the caption and if no caption is set we use the title
- My WordPress installation doesn’t load correct template
- get_template_part() to render single page Theme
- Display articles related to a custom field on a page
- Stuck with conflicting loops on page template
- Same Loop on Multiple Pages
- Loop not showing up on page template
- Custom Page Template and Category Exclusion
- Display all posts in a page code for template
- How to return loop contents
- How to get the first image gallery of a product in woocommerce in a loop
- How can I custom order the results from wp_list_categories?
- Add 20yrs to post date, and then query
- Display all authors and their only one latest post
- Remove comma from last item output from loop
- How to show just private posts in loop
- How to paginate this custom loop? [duplicate]
- Can I use both a custom excerpt and a trimmed excerpt?
- Select data from database and list it in Loop (WordPress)
- wp alchemy multiple image uploader output images to template
- I’ve been out of the loop since 2.8. What did I miss?
- Loop first six posts in carousel, next eight in grid
- Infinite blog loop
- One custom loop with condition to check child posts
- Loop get_theme_mod
- Move sticky posts down in main loop
- Why only one post (and no pagination) on this variation of the loop?
- using the loop with a custom table
- How do I go about looping through a advanced custom field on a particular page inside of another page
- Template structure
- The Loop – mixed ASC and DESC order
- Filter the_posts doesn’t work on search page
- Cannot retieve the_content() and the_author() – both returning empty strings
- How to get the excerpt for is_home() outside of the loop isn’t working
- Make loop alphabetical
- How to check if a product is purchased within the last 365 days before displaying something
- How do I get my loop.php to properly paginate?
- Custom loop ordering not working
- First archive page with a few posts
- Loop through ACF taxonomies and output associated posts
- How to get user ID’s from multiple usernames?
- Query posts only with actual text content (not including shortcode or images)
- How can this multiple loop have pagination as described?
- Default featured image set as background image [closed]
- Breaking up the results of a loop
- Where to add offset?
- Loop and add Specific Categories and Products Images
- How do i create a list-posts-page?
- Exclude posts based on an array
- Add custom PHP and HTML to the_content()
- Is file_exists() compatible with timthumb.php? [closed]
- List ALL posts by author on author archive
- Using is_page_template inside loop
- Archive: Lists itself
- How to show the last article in a different way in my blog?
- Can’t limit posts_per_page in loop
- Reorder posts in a loop: have the posts by one particular author below the others
- Slug is changing when I use WP_Query in a metabox of a post
- how to get author comment inside the loop?
- How to create loop in custom page, and get id from url into this loop?
- How to fix pagination for custom loops?
- Check to see if a field is within an array in twig
- Archive sorted by month – separate
- Display single post inside accordion based on form submission results
- One page loop issue with posts
- Humanmade | Custom meta box class: How to display a repeatable meta box group?
- Can’t print out returned value
- change the_content images for different sizes (Desktop, tablet, mobile)?
- Building theme so user can change header image [closed]
- Get query result before posts are displayed?
- WordPress Group By Problem
- Home page loop with pagination problem
- WooCommerce custom loop pagination on front page
- get_page() unlike Loop returns the post content without html tags. How can I fix this?
- Problem with ms-thumb-frame-selected class in Master Slider
- I want the first post on my home page to be lengthier than the rest (example included)
- Loop with Custom Post Type Taxonomies and Interstitial Code
- Question about custom plugin
- How can you make it so the comment box shows on some pages or posts but not all?
- How to get files from loop for zip
- Divide loop into several columns based on post custom field and enable infinite scrolling
- Query Loop Block: possible to restrict just child pages?