Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Custom "all-instructors" page
Tagged: all instructors
- This topic has 12 replies, 2 voices, and was last updated 7 years, 4 months ago by Louis.
Viewing 13 posts - 1 through 13 (of 13 total)
-
AuthorPosts
-
July 3, 2017 at 9:51 am #119283LouisSpectatorHi, 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 feedbackJuly 3, 2017 at 11:20 am #119300H.K. LatiyanParticipantHi... 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 coursesJuly 3, 2017 at 11:37 am #119304LouisSpectatorWould 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? ThanksJuly 3, 2017 at 12:41 pm #119319H.K. LatiyanParticipantHi... 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; });July 3, 2017 at 1:32 pm #119339LouisSpectatorHello, 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 lotJuly 3, 2017 at 1:51 pm #119348H.K. LatiyanParticipantHi.. 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.July 4, 2017 at 11:15 am #119470LouisSpectatorLooks 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.July 4, 2017 at 11:23 am #119477H.K. LatiyanParticipantHi.. 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.August 7, 2017 at 7:48 am #123780LouisSpectatorHello, 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.August 8, 2017 at 8:44 am #123850H.K. LatiyanParticipantHi, 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.August 8, 2017 at 8:59 am #123851LouisSpectatorThis reply has been marked as private.August 8, 2017 at 1:20 pm #123916H.K. LatiyanParticipantHi, 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.August 8, 2017 at 3:55 pm #123958LouisSpectatorFair enough ... Thanks for your help (it 's working now)!
-
AuthorPosts
Viewing 13 posts - 1 through 13 (of 13 total)
- The topic ‘Custom "all-instructors" page’ is closed to new replies.