Is there any way to return a the post number of a particular post?
If I'm looking at my blog homepage, and I want to show the 4 most recent posts not being displayed on the front page, all I have to do is offset by the number of posts shown on the front page.
However, if I want to show the 4 most recent posts starting from a single post page, I have to manually get the IDs of the previous 4 posts.
So basically, I'm looking for a function that will return how many posts down a single post is from the most recent one, so I can offset my recent posts query by that number.
Does anyone know of an existing function that does this, or know how to achieve this in a custom function?