Miroslav Mitev (a11n)
Forum Replies Created
-
Hey @theomega1123,
This feature is missing, but a workaround is to use the
sensei_user_courses_queryfilter.Here’s a quick code example:
add_filter( 'sensei_user_courses_query', 'my_filter_user_courses_query_by_category', 10, 4 ); function my_filter_user_courses_query_by_category( $query, $user_id, $status, $query_args ) { $query_args['tax_query'][] = [ 'taxonomy' => 'course-category', 'field' => 'slug', 'terms' => 'test-category', // <-- Change this to the slug of the category you want to filter by. ]; $learner_manager = Sensei_Learner::instance(); if ( 'complete' === $status ) { $query = $learner_manager->get_enrolled_completed_courses_query( $user_id, $query_args ); } elseif ( 'active' === $status ) { $query = $learner_manager->get_enrolled_active_courses_query( $user_id, $query_args ); } else { $query = $learner_manager->get_enrolled_courses_query( $user_id, $query_args ); } return $query; }You can also try out the new Course List Block. It is using the Query Loop Block underneath, so you can filter by any taxonomy out of the box.
Hope this helps. 🙂
Forum: Plugins
In reply to: [Sensei LMS Certificates] Bug in Version: 2.3.0Thanks for the report @akash19jan. We’ve created a fix that will be available in the next version.
Glad that worked out!
Hey, thanks for the report!
Do you happen to know which version of PHP you are running on your site?
I’ve noticed that you are using the Classic Editor plugin which is no longer supported by Sensei. Could you try to disable it and let me know how it went?
Forum: Reviews
In reply to: [SyntaxHighlighter Evolved] Schönes Plugin, aber verbesserungswürdigHey @hoerli,
I’ve tried to reproduce your issue but without success.
Here’s what I did:
* Copied the nginx config (MIT HTTPS section) from the blog post.
* Created a new blog post.
* Inserted the config into a SyntaxHighlighter Code block usingPlain Textas the code language.
* Replacedfastcgi_split_pathinfo withfastcgi_split_path_infoand$fastcgi_path infowith$fastcgi_path_info.
* Preview the post. (result)My suggestion is to try and isolate the problem. You can start by disabling all other plugins and changing the theme to Twenty Twenty-One.
If that doesn’t work, please share a few screenshots of the editor (or a video) and provide a detailed step-by-step guide on how to reproduce the issue.