Custom "all-instructors" page

Home Forums Legacy Support Support queries How-to & Troubleshooting Custom "all-instructors" page

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #119283
    Louis
    Spectator
    Hi, On the "all-instructors" page, is it possible to display only those who are related to a course? => the users who have a status "instructor" and are marked "author" on at least one course. Thanks a lot for your feedback
    #119300
    H.K. Latiyan
    Participant
    Hi... This filter option is not present in all instructor page as of now. It only shows how many courses that instructor have. But they cannot be filtered according to the same courses
    #119304
    Louis
    Spectator
    Would it be possible to add some code so that only those who have created courses are displayed in the all-instructors page? Or to do that manually? Thanks
    #119319
    H.K. Latiyan
    Participant
    Hi... Try adding the bellow code in your wplms-customizer.php file present in your wplms customizer plugin: add_filter('wplms_allinstructors',function($args){     $args['has_published_posts'] = array('course');    return $args; });
    #119339
    Louis
    Spectator
    Hello, Thanks for your feedback but it doesn't seem to work so far (and I removed cache); all instructors are still displayed, no matter if they are "authors" or not. https://prnt.sc/fr2wde Could you think of another bit of code please? Thanks a lot
    #119348
    H.K. Latiyan
    Participant
    Hi.. The code is correct. Before adding the code : http://prntscr.com/fr35tk After adding the code : http://prntscr.com/fr36kx ------------- This means that you are not adding the code correctly or not adding the code in the correct place. Make sure you are adding the code in the wplm-customizer.php file which is present in the wplms customizer plugin OR if you are using a child theme then you can add the code in the functions.php file of your child theme.
    #119470
    Louis
    Spectator
    Looks good on your side indeed. I added the code in Appearance > Customizer > Custom CSS Is it the wrong place? Do I necessarily haveto add those in a php file directly? Thanks for your feedback.
    #119477
    H.K. Latiyan
    Participant
    Hi.. I already mentioned above that you have to add that code in the php file. The php code should never be added in the custom css.
    #123780
    Louis
    Spectator
    Hello, I added the code in the wplms-customizer.php file and now my website shows no instructor, even though, before: * some instructors had a little number associated on the "all-instructors" page * the instructors are marked as "authors" in the dashboard * on the courses pages, the instructors are shown as authors as well. The code I added is the same as the one you gave: https://prnt.sc/g5awr6 Thanks for your feedback.
    #123850
    H.K. Latiyan
    Participant
    Hi, Can you please share the all instructor page url, and the admin credentials of your webiste to check this. PS: Please mark your reply as private while sharing the credentials.
    #123851
    Louis
    Spectator
    This reply has been marked as private.
    #123916
    H.K. Latiyan
    Participant
    Hi, I checked your website and found out that you have created all your courses from the admin account and you have set the administrators to hide from the all instructors page from the lms settings. So since only the admin has created the original course and the admin is hidden therefore there is no instructor shown in the all instructors page. ------------- If you want some instructor to show in the all instructor page, then first create the original course with an instructor account and then check.
    #123958
    Louis
    Spectator
    Fair enough ... Thanks for your help (it 's working now)!
Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Custom "all-instructors" page’ is closed to new replies.