What happens next?
Nothing. That’s it. Loading the template is the last thing that happens.
I suppose the post loop in the template gets executed.
When the template is loaded the PHP code in it just gets run like any other PHP code.
Most templates should include a pattern of code that’s called ‘the loop’. This code does what the documentation says it does.
Where and how does any php code embedded in my web page come into play here?
You don’t embed PHP code in page content in WordPress.
Related Posts:
- Why do I need to use The Loop on pages (inside page.php etc)?
- posts page – different lengths of excerpt
- Multiple loops in same page, without duplicate content
- Differentiate between posts and pages in search results
- page.php showing loop of posts and not page content
- Multiple loops are not reset
- Display Posts on Custom Page
- Multiple Loops Breaking Pages
- WordPress Query Posts From Category Post on Static Page
- Pagination for normal (standard) posts on a page with a custom loop?
- Changing wp_link_pages() to “Next Page” and “Previous Page” buttons?
- posts going to 2 pages/categories only show up in 1
- How to distinguish pages created by woocommerce?
- Posts are not showing up on next page.
- Where are my posts linked to? I keep getting a Not Found Error, and I have no single.php page
- The loop: more posts than I want to fit on one page
- Redirecting posts in WordPress to a specific page
- What function does the loop of displaying posts?
- Determine if page is the Posts Page
- Print Current Post Index number within Loop
- Should we trust the post globals?
- Get the Current Page Number
- How to get posts published between a date and today?
- Stop WP from creating “Sample Page” and “Hello World!” post
- Keyboard shortcut for updating a page or post?
- Apply the_title() filter in post & page title, but not in menu title
- How to display by default only published posts/pages in the admin area?
- Get current menu_order
- Difference between an archive and a page listing posts
- Delete Associated Media Upon Page Deletion
- The next_posts_link() works only with original $wp_query
- Get content from one page and show it on another page
- How to Check if a Page Exists by URL?
- How set featured posts using checkbox in post edit screen?
- Connection lost. Saving has been disabled… (Updating Posts/Pages)
- get_children() Not Working with orderby Parameter
- Get first post from wp_query
- Do we still need to include a “if (have_posts())” in templates?
- WP_Query: Why is sticky post not first item in loop?
- Query *only* sticky posts
- how to limit edit_form_after_title hook to page and post edit only?
- Using single.php from plugin folder instead of default template folder
- Post/Page Publish/Update button not clickable once I make an edit
- Display all posts from specific categories on a page
- Strategy for handling hierarchical pages with empty parent content
- Skipping first 3 posts in wp query
- rewind_posts() – what actually the use of it, and where using is required or preferred?
- Custom Field in Featured image for A particular post
- How to add a new tab to page editor
- Skip post in loop and mixin later
- How to show list of posts by author and category?
- How to display the page title/content in the Posts page?
- Override the default number of posts to show for a single loop?
- Callback for wp.autosave.server.triggerSave();
- get comments and get posts in loop
- How can I see a list of pages and post where my custom Gutenberg block is used?
- Restore contents of deleted user
- How do I reorder (pop and push) items from WP_Query?
- How to exclude latest x posts from a paginated query?
- disable password protected page for logged users
- How to change post to page
- RSS for Pages Instead of Posts?
- Display content from a specific category
- Display posts by tag on page
- Reverse chronology of post listing
- What is the difference between “post” and “page” in WordPress?
- Create custom page in WooCommerce
- WordPress automatic and permanent page
- WordPress Number of Posts Not Changing With posts_per_page
- Is there a WordPress equivalent to MediaWiki templates
- Determining Slug Before and After Edit
- how to display full post with pagination on home page
- Getting an alphabetic post list with two letters onclick on letter
- Automatically create pages in a post based on number of words
- Count singular post views automatically
- Static posts page with home.php
- Looping through posts per category gives same posts for each category
- Find most recent authors
- Change WordPress post-state in Admin Area
- Pagination not working on Custom Page Template
- This AJAX Code Doesn’t Work – Looking for elegant solution
- Display All Sticky Post Before Regular Post
- Cannot access current post’s ID in custom plugin
- Set number of article per number of page
- Can’t show comments count per post outside loop
- Get the author of the latest revision
- Pagination for Pages and Posts
- How to have different content in the loop and single
- Is it possible to show a different WP menu when using password protected pages?
- Can I change a post to a page by changing it’s type?
- Overview with latest edited posts and pages
- Specific loop in Shortcode
- Strange switch_to_blog() issue
- how to show all post in my page-grid.php template page
- eBooks download website, page or post?
- Show a list of recently viewed posts to a user
- loop not displaying posts on custom template page
- Repost post on specific date every year
- How to use alternate post layout at key points in post loop?
- Add a custom option to a page in backend