Access the current loop count variable from plugin?
-
I could not find this info anywhere: Does WordPress have a global variable that would allow plugin developers to determine where WordPress is in the current loop display? So for instance if WordPress is displaying on the index and has 10 posts to display (because the admin set this in settings) and the loop is in the first post, is there a variable I can call like “$loopcount” from my plugin to determine when we’ve hit the third post? This would seem like a very smart and nice thing to have but I don’t know what it would be or can’t find info on it.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Access the current loop count variable from plugin?’ is closed to new replies.