Including Loop is not necessary, but recommended. Also, if you want to use some features you need the loop, for example:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
Related Posts:
- Loop and Page template : my WP_query don’t take args
- Create a loop that gets pages with their template
- wp alchemy multiple image uploader output images to template
- How do I make a variable available inside partials?
- Print the whole page?
- excerpt not showing up
- How do i create a list-posts-page?
- is it bad to copy the loop for a template?
- get_template_part() to render single page Theme
- Jquery Slider for profile template
- if ( is_home() && ! is_front_page() )
- Custom templates not showing up in template dropdown
- Getting only direct child pages in WordPress with get_pages
- Do I need to use The Loop on pages?
- Ways to have multiple front-page.php templates that can be swapped out?
- Using the Loop to show all levels of subpages under a parent page? Halfway there
- Is it possible to manipulate the list of page templates?
- Child Pages Loop
- Create built-in pages without creating actual pages
- Get post by page name or slug
- Loop that displays PARENT PAGE & CHILD PAGE & outputs GRANDCHILD PAGE title and content
- Limit number of pages that use a specific template?
- posts page – different lengths of excerpt
- Display subpages under parent page as a list within a loop
- When and Why is is_singular(‘my_cpt’) true while in_the_loop() is false?
- What is best way passing variables to theme templates and using them different places like widgets?
- Identify the page being shown while in The Loop
- Trying to list out child pages with WP_Query
- how to show all post in my page-grid.php template page
- loop not showing up when using a custom page template
- If Loop has odd number of posts on last page Custom style for last post in it
- Custom page template
- Getting page ID inside loop
- Easiest way to show total number of subpages
- Page template not displaying
- How to dynamically save a selected option from page “Templates” selectbox?
- Subpage template
- single page site with subpages
- How to loop through ALL pages?
- Get Pagination (WP-PageNavi) not to work
- Loop through pages with specific template
- Where can I access my custom page template?
- Custom page template not working
- Display a specific dynamic sidebar widgets on a specific page
- Custom Template 404 for specific custom post type
- How to get_template_part using AJAX?
- Display content of page template (get_page)
- Loop after page content
- How do I pass data from page content to the underlying PHP template
- Running a loop with a custom query string on a custom page template
- code suddenly appearing from my tempate second loop
- How to load all pages into one page with their templates
- Get search.php results in header.php?
- Getting pages filtered by template assigned
- How to hide all child pages with post_query?
- WordPress Loop inside Loop?
- Template structure
- How to show “teaser” posts on blog / archive pages, otherwise full posts
- Order archive results by post id in custom taxonomy template
- Default ‘post’ post type archive slug?
- Get Page content to displayin Bootstrap Modal
- 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?
- Changing permalink name redirects to another template?
- How to insert category list into post creation page, and retrieve chosen categories?
- Multiple get_posts() queries on one page
- Exclude page name from loop
- Need help with adding templates (archives and sitemap) to WordPress child theme
- Stepping through a foreach loop – adding +1 to the end of it so next time it loops it starts on item 2
- Include multiple page ids in loop
- 404 Template customization | Want 10 recent Post on the 404.php error page apart from the error Notice
- the_content of template page
- Get post offset/posts page offset in single post page (outside the loop)
- First archive page with a few posts
- Tags on page (not post) returns nothing – why? Improved clarified question!
- Second Loop Showing Only One Post on Single Post Page
- Use same page-mypage.php template for several pages
- How do I put my frontpage featured image in a page template for home.php?
- Avoid pages losing template association on site re-deploy
- Exclude page from loop results
- Custom form not showing in correct place on page
- Get markup for post without loading into the template
- How to render the single post template with the post name?
- WP_Query is only looping home page, not pages
- Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)
- new custom theme – posts displaying on top of one another
- How to sort a loop after most viewed
- Static Website No Titles But Still Nav
- WordPress: query pages except remove one page
- How to loop specific Category menu from archive page?
- Custom Header added within Dashboard pages, is this possible with custom template files?
- How do I set the Stewart Search Template to return only published posts in the result
- Is it possible to set archive.php instead of index.php to display blog?
- Using is_page_template inside loop
- How to use custom page for all posts with custom url, call another directory?
- 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
- Archive: Lists itself
- WordPress blog posts template bug [closed]