Writing code which executes after a specific number of posts on any number of paginated archive pages in Genesis is tricky.
This tutorial contains 4 code snippets which enable you to :
- Execute code after any number of posts on the 1st paged archive only. Only executes after 1 specific post.
- Execute code after any number of posts on the 1st page only of any archive. Executes after every post.
- Execute code after any number of posts on the all paginated archive pages.
- Execute code after any number of posts on the 1st paginated archive and execute on all posts on archive page 2 and greater.
Here’s the 4 code snippets :
Was This Tutorial Helpful?