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?
- Get the Current Page Number
- Stop WP from creating “Sample Page” and “Hello World!” post
- How to display by default only published posts/pages in the admin area?
- How set featured posts using checkbox in post edit screen?
- WP_Query: Why is sticky post not first item in loop?
- Display posts by tag on page
- how to display full post with pagination on home page
- This AJAX Code Doesn’t Work – Looking for elegant solution
- Can I change a post to a page by changing it’s type?
- How to use alternate post layout at key points in post loop?
- Add a custom option to a page in backend
- Showing random content / pictures from earlier posts in a sticky post?
- Creating new page with pre-defined parent page
- Populating a page with content from post custom fields
- Double count view in archive.php
- disable column on post and user list
- Can a page_id and a post_id be same?
- How can I display widget in a Page or Post?
- Different style for most recent article
- Getting a 404 error when clicking edit page
- Loop through all product posts?
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- Display post category in foreach loop with category link
- Displaying Latest Posts on a Page
- Display all posts that were published before full post on single.php
- Two loops, one AJAX loop, exclude posts in first loop from second loop, loops are in different files
- Get Image tag from content of post
- List authors with the last post title and order by last post date
- When open add new post or page WordPress add post with ID=0 continuously [closed]
- “Right Way” to make custom Loop respect reading settings inside admin panel?
- Only display sticky post or latest post in custom loop
- How do I do a page break?
- Automatically create a new page daily with last three posts
- When changing pages to posts, how do you set up 301 redirects for the page URLs?
- How to make a sum of all posts displayed in a loop
- why does wordpress ignore the post args?
- First x post with another template then the others
- Loop doesn’t show title of second post and posts thereafter
- Grid post page on WordPress with Bootstrap, the_excerpt(); Problem
- Loop parent terms {display posts} AND loop child terms {display posts}
- add bootstrap post slider with tabs
- How to add add more properties to WP_Post object in search results loop
- static landing page leading to author specific pages w/ “live” content
- Add Blog to WP homepage Manually
- How to show all posts by author on buddypress profile with navigation
- How to add automatically bootstrap 4 order-lg-1 and order-lg-2 classes for columns in foreach loop based on the count?
- WordPress 302 Redirect to Random Product/Post/Page
- separate the post of a category by subcategory
- Optimize CPT-function with a loop
- Limiting the amount of posts retrieved by the loop
- Direct some posts to only appear on a specific page
- Different post views for different category views
- Error while excluding a post from another loop (using its ID)
- Creating a redirect option for current page url
- Indenting within a blockquote
- Change published date and time using SQL query for page in every 5 hour
- WordPress Sticky Post Count “Fix” Breaking Pagecount by 72 pages!
- How to add a block to a category page?
- show loop id post , only first id can read
- calling pages instead of posts
- WordPress display page information rather than post
- Post Category link is same with Page link
- Wp_query loop is not working as it should
- Maximum number of posts per page before affecting performance?
- Display post order ranking within wordpress loop
- Problem with wp_insert_post()
- How to control Post view count incresing in sidebar widget posts too?
- Precedence of page permalinks over woocommerce product category links?
- Page and Posts loading as index page? Not loading the content
- Converting Posts to Pages
- Multiple Post Repeat for Related Post Loop by Category
- Where should get_post_meta() go to get $post->ID get_post_meta() is empty and $post->ID & get_the_id() are working
- 404 error on every post and page other than home
- Loop through posts by each term and exclude duplicate posts assigned to several terms
- Get post title of faulty link on 404 error page
- The next_posts_link() works only with original $wp_query
- Only show posts with image and the correct ammount of posts in loop
- Related posts by searching post tags of single post as terms
- Limit amount of pages shown in pagination within wp_query
- Wrap every 2 posts
- How to make posts appear under pages
- Post data returning null [closed]