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
- 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
- Child Pages Loop
- Create built-in pages without creating actual pages
- Get post by page name or slug
- Limit number of pages that use a specific template?
- 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?
- Identify the page being shown while in The Loop
- Trying to list out child pages with WP_Query
- loop not showing up when using a 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?
- 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
- 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
- Getting pages filtered by template assigned
- 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
- Custom Loop Using Shortcode in Custom Page Template
- Page-loop is looping content from custom loops on the same site. How to avoid that?
- Changing permalink name redirects to another template?
- Multiple get_posts() queries on one page
- 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
- 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!
- 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
- new custom theme – posts displaying on top of one another
- Static Website No Titles But Still Nav
- WordPress: query pages except remove one 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?
- 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]
- Adding styles/scripts to specific page
- Is “the loop” a template tag?
- WordPress form submit to custom page template does not work
- Problem with Displaying Custom Theme Page’s Content
- Deeply Nested Menu Loop with Twig using Timber [closed]
- Search – Check if post is a page on search page
- WordPress with woocommerce custom query
- How do you assign custom template for Posts page (under Front page displays setting)
- Template included with plugin doesn’t return all posts for custom taxonomy
- Avada Theme – Display results from a specific category [closed]
- Making a specific page wordpress compatable that is not index
- Default Template infinite loop of Title
- Secondary loop cuts off at 10 posts?
- Have multiple loops on a page appear after/between page content
- Fake Single WordPress Post (Page) Loop
- Stuck with conflicting loops on page template
- Same Loop on Multiple Pages
- Using custom post types within a section of a template
- Loop not showing up on page template
- get all page templates
- wordpress showing all posts instead of date range
- Redirecting posts in WordPress to a specific page
- Custom Page Template and Category Exclusion
- get_page() unlike Loop returns the post content without html tags. How can I fix this?
- Same posts within a paginated page
- Display all posts in a page code for template
- May I know where to edit the tax rate?