Counts of post types for author
-
I am attempting to count the number of entries a particular user has for every post type, including custom post types, so I am aware of content before deleting a user. I am having two problems.
[loop author=this orderby=type status=any] [field post-type] : [field title-link] [/loop] [loop-count]
If I use the loop construct with no “type=” and status= any, I was hoping I would see every post type. However, I only see 4 different post types, one of which is a custom post type. I have many more which are not included, but they are shown if I explicitly put them in “type=”, so it knows they are there. For example, we use bbPress so I can see “topic” and “reply” if I put them with type=, but they do not show up if I remove type=.
The second problem is that I would just like a count for every post type I have. When I remove the [field] part from the loop, it returns a blank line for every entry and then gives me the loop count. I have also tried the [calc] method inside the loop and it also gives a blank line for every entry.
Is there a way for me to show every post type I have and then show the count of each for a particular user?
Thanks, Mike
- The topic ‘Counts of post types for author’ is closed to new replies.