1 If you look at the source code of get_the_title
you will see that there is no difference between the two ways of writing the same thing, because if you call it without a parameter it is supposed to be the current ID.
2 There is no substantial difference between the two loops you use. All go through the same amount of items and do the same thing with it. Theoretically putting everything in archive.php
would be a bit faster, because you skip the function call to get_template_part()
.
In short: when it comes to performance the two options are hardly any different.
Related Posts:
- Jquery Slider for profile template
- if ( is_home() && ! is_front_page() )
- Is including the loop necessary for page.php? [duplicate]
- get_the_foo() in the loop – does it perform another query?
- Page template not displaying
- Loop through pages with specific template
- How to get_template_part using AJAX?
- wp alchemy multiple image uploader output images to template
- code suddenly appearing from my tempate second loop
- Get search.php results in header.php?
- WordPress Loop inside Loop?
- Including post thumbnail url in loop’s post object to reduce number of queries
- 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?
- How do I make a variable available inside partials?
- 404 Template customization | Want 10 recent Post on the 404.php error page apart from the error Notice
- Second Loop Showing Only One Post on Single Post Page
- How do I put my frontpage featured image in a page template for home.php?
- Get markup for post without loading into the template
- How to render the single post template with the post name?
- excerpt not showing up
- new custom theme – posts displaying on top of one another
- How do i create a list-posts-page?
- How to sort a loop after most viewed
- How to loop specific Category menu from archive page?
- 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
- is it bad to copy the loop for a template?
- Is “the loop” a template tag?
- Deeply Nested Menu Loop with Twig using Timber [closed]
- WordPress with woocommerce custom query
- Alternative layout the loop
- Cant pull in featured Image
- Template included with plugin doesn’t return all posts for custom taxonomy
- Creating a archive for taxonomy terms, not the term results
- Secondary loop cuts off at 10 posts?
- Need a conditional to test if title of parent page matches title of child page
- get all page templates
- Load featured article once in a loop
- wordpress showing all posts instead of date range
- How to implement template file and the loop
- Same posts within a paginated page
- How can I create an entirely new, separate display of posts?
- How to get Author ID outside the loop
- remove tags from the_content
- the_title() shows title of the first post instead of the page title?
- Why do themes rely on “The Loop”?
- Show newly added posts since last user login time /date
- Use the_content outside the loop
- How to loop over custom fields in a page template?
- Adding active/current class to get_terms list
- Display content of page template (get_page)
- Single page site (WordPress) including posts
- Meta Query with spaces in value?
- Display the_content on click jquery
- Missing image in gallery shortcode in custom feed
- Styling text and images in the_content()
- How do I use AJAX Query in my posts loop?
- Duplicate posts in paginated results
- Output loop leveraged shortcode twice on one page
- Added if statement to loop
- How to get The Loop working with $wpdb->get_results()
- Display Posts Only with Specific Tag
- How to get my loop to paginate?
- Group posts by date with a list
- Add class to last 3 posts in loop
- Get author Meta for particular user inside the loop
- Will only show the first 10 wordpress posts instead of all my posts
- Count post views in loop
- displaying recent comments outside loop without plugin
- get_the_ID not returning correct ID value
- Separate First Post Loop
- add offset to archive page
- loop inside the foreach
- make get_post work in the loop
- How to display 3 post per slide
- How to put a block of code between [shortcode][/shortcode] in do_shortcode()?
- current-user_can not working in loop
- For Each +1 WordPress Loop
- How can I access a post’s feature image outside the loop?
- get_post_meta printing empty fields, but it shouldn’t be
- How to read taxonomy in loop?
- Undefined index: page in loop load ajax content
- Only Show Excerpt After First 3 Posts
- How to insert content before pagination in loop?
- WordPress redundant posts based on meta field
- Get featured image outside the loop using foreach
- Page gets displayed in post field
- Display Taxonomies in loop with template args
- pre_get_posts main_query not displaying after applying tax_query filters
- setup_postdata in “loop-handling” php file called via $.ajax
- strange parse error when including a loop template within another template
- Previous Posts Link and Next Posts Link Show All The Same Articles?
- Posts Loops To Display Specific Posts Inside Page Template?
- Use callback function in AJAX pure javascript [closed]
- Undefined variable: woocommerce_loop [closed]
- title not being printed within html tag [closed]