By default, the step post type is private and not supposed to be publicly queryable since it’s meant to be internal only. There is a filter on it if you really want to make it frontend public.
'public' => apply_filters( 'badgeos_public_steps', false ),
If that’s not quite what you meant, please let me know so I can give a more appropriate answer.
Thread Starter
imborx
(@imborx)
Hi Michael, thank for your support.
I would like to create a badge that uses “visits” like steps. I mean, instead of “post a comment”, use “visit X times the webpage”. Something similar than that. Is that what you mean? I don’t understand where I have to place your code and whats his function
Thank you so much
Thread Starter
imborx
(@imborx)
Hi Michael, can you help me please? 🙂
Thank you so much
Sorry, somehow missed seeing your reply.
Ignore my first reply, it’s not what you were getting at.
What you’re needing is going to be a custom solution, as I don’t know of any code snippets to help right now, and “viewing” requirements as steps aren’t something we have out of the box.
You’ll need to set up a way to track the views for each user, and also need to find a point to check for eligibility for earning it.