Which WP function?
-
How do I check how many posts have been retrieved (or will be retrieved) on the root of the wp blog, i.e. by index.php?
I am doing some styling, and just want to get the number of posts retrieved so I can generatr a table on the fly.
The number of rows in the table should be the same as the number of posts that were retrieved in index.php or the number of comments retreived in single post mode.Can I do the same thing to check comments retrieved/recieved per single post? If so what is the function?
I am populating this variable in my header.php, BEFORE index.php, single.php etc have been executed, I believe. Is that relevant?
(If you know the answer, would you be able to point me to a reference (codex) about these functions? I am struggling to find my way around the WP site and I haven’t been able to find a listing of all funcions so far.)
Hope somembody can help?
- The topic ‘Which WP function?’ is closed to new replies.