I am working on two blocks and got a little stuck with two markup.
I am working on a users directory and the first one is to test the user_role inside the loop using the if statement. I’ve tried several different comparison like the following markup:
<If check=user_role includes value=administrator >
But it appears as though the comparison is done on the currently logged in user and not the user in the loop? I am guessing that I missed something in the markup to get it to loop through the users in the loop instead?
I am working on displaying the title of all sample LearnDash lessons on the site. From looking at other examples, it appears as though it is as simple as doing something like the following:
<Loop type=learndash_lesson fields="lesson_is_sample"> <h4><Field title /></h4> </Loop>
However I am not having much luck there.
Can you please guide me as to some concepts I am missing?
Thank you in advance!