Just as the loop starts the action loop_start
fires. Once each post is setup as the loop iterates, the_post
fires. After the loop has finished, loop_end
fires.
Each of these actions receives a reference to the queried object if you need to check for context.
If you are in control of the theme code it might be as easy to insert your inter-post code there, of course.
Related Posts:
- Best collection of code for your 'functions.php' file [closed]
- Manually set global $post vars with an ID, in order to use template tags
- Shared functionality in plugins and themes
- Remote upload file to server B
- Define Function in functions.php or plugin and call in theme loop
- WooCommerce create new product and add to cart on form submit
- Post source link plugin – small modification
- Modifying Footnote Plugin for Descriptive Title Attributes
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- Debugging Technique Question re: functions.php
- Override the filter from plugin in child theme
- Edit Yoast SEO breadcrumbs output [closed]
- Calling an attribute from a plugin shortcode
- Redirect to another page using contact form 7? [closed]
- Plugin Development – Functions or Hooks?
- Loop in elementor custom widget not working
- Overriding an Array in a Plugin’s Class/Function from functions.php
- Change Header (Logo) Based on Login
- how to change wp-admin url using function file
- same user role or copy the user role to be same as the other role
- Call javascript functions from each page
- How to keep plugin (media-sync) running even the tab is closed?
- implement custom roles in custom plugin
- Post source link plugin – small modification
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Adding discount functionality to the cart
- How to assign a specific service to a specific provider based on location
- Precheck fields when I add a new post
- working code, not working – Plugin Dev
- Conditional required fields for WordPress Contact Form 7
- Multiselect value in wp_query
- WordPress: code structure
- How to display content depending on the Woocommerce Product Category
- How to Add Extra Text In WordPress Title Before Post Publish
- How to disable plugin capability : “create new category”
- Product customizing quiz – quiz adding products to the cart
- Disable plugin / plugin action via theme
- Delete tables from database when deleting plugin
- Need to create a Theme demo site that features multiple themes
- Adding New Role
- Custom comment type maybe?
- Posts wont expire
- Add Top-Level Menu that opens URL
- wordpress custom login successful redirect hook
- plugin for wp_list_categories with posts
- Replace existing pages with new pages, keep menu links
- Display All Non-Used Plugins
- New Plugin: Post update pushes a copy as a revision
- Placement of Code in Plugin for hooking `save_post`
- Will Flutter work with WordPress 3.0?
- PHP Fatal error: Call to undefined function plugin_basename
- Missing Argument
- load_plugin_textdomain error
- Adding Shortcode to Text Widget
- wp_generate_attachment_metadata is creating an empty array
- Use of Templates in a Plugin
- Custom wordpress Theme and Plugin repository
- WP Query. Is there a maximum size?
- Recent posts per category loop?
- Proper way to use plugin functions in functions.php
- WordPress as template engine
- WordPress – source link plugin – how to modify it?
- Minimize and Uglify WordPress Plugin Files
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- Get post content from outside the loop with plugin shortcode usability
- Optimize CPT-function with a loop
- How display specific category post to specific users?
- Download counter for skydrive shared files in wordpress
- auto activate plugin when theme is active
- Load CSS before Theme CSS
- Custom Logo Link WordPress
- Where do I put the code snippets I found here or somewhere else on the web?
- How to convert Currency from USD to other IP Based currency in Php function
- Attempting to list all product categories and the price range of all products within them
- the_posts_pagination() not working if I add wp_head() to header.php
- function post to trash problem
- adding dynamic/multiple slug values in ‘option_none_value’
- Move plugin pages from dashboard to front-end
- save short-code in my custom plugin settings problem missed something
- register_activation_hook not creating table
- Compare Ajax Data Results
- WordPress delete cookie
- EventON – Dequeue Styles
- WordPress Add advertising ads befor and after content with periority [closed]
- Function in my plugin is called twice
- Code fails in plugin file but works in functions.php
- Cannot access variables within a widget
- Display_rows() and column_cb() strange behaviour
- WordPress plugin options need to delete after deactivate & uninstall
- WordPress function to add text
- Directory structure for plugin changes
- How can I pass value to function in add_menu_page?
- Need Help Creating a Multi-Step, Video-Guided Enrollment Site
- User specific content (posts) / limiting visibility
- Doing action based on input from options menu
- How can I modify the colors of my theme for a single section of my site? [closed]
- How to generate a responsive output from plugin?
- How to dispaly post informations (such as titles) in an admin plugin menu page?
- Create Custom Coupon Type
- wp_enqueue_script doesn’t load JS in plugin