I’m building a custom theme and would like to pin the 4th post on an archive page for a custom post type. How would I go about doing this? When you Google this subject it is just a sea of articles about how to pin the 1st post. The reason for wanting to pin the fourth post is because it is going to contain an advertisement / sponsored link.
Obviously I wish to pin it so it stays in fourth place not pin that post to the top of the page.
I have been using the WP_Query() function on the archive page itself in case it is possible with this function (I can’t see that it is though).
Many thanks in advance for any pointers / advice.
Read more here:: Pin the 4th Post On The Archive Page Of A Custom Post Type