WordPress / Learn

WordPress.org Learn - The canonical source for the code and content behind https://learn.WordPress.org
239 stars 85 forks source link

Filter quiz and completed lessons from Lessons archive #2591

Open adamwoodnz opened 5 days ago

adamwoodnz commented 5 days ago

On the Lessons archive there are items included which arguably aren't valuable to be displayed, eg. a Lesson which only holds a quiz:

In order to not waste screen real estate displaying these, we should filter them out.

Questions

Can we do this simply by filtering using the content of the title?

If so what terms should be filtered; 'quiz', anything else?

kathrynwp commented 5 days ago

@westnz mentioned that some quiz lessons don't include the word quiz, but instead have titles like 'Test your knowledge' or 'Time to test your skills' and mentioned possibly updating those lessons' titles as being faster than figuring out other words to filter on.

We could go through the Lessons to find and update those titles to add the word "Quiz", if we decide to proceed with title filtering. Also noting that some of the quizzes are in languages other than English so we might need to find some translations in order to update those.

Other words to possibly exclude:

kathrynwp commented 5 days ago

Another lesson title to exclude:

adamwoodnz commented 4 days ago

Also noting that some of the quizzes are in languages other than English so we might need to find some translations in order to update those.

Hmm this is an important point, thanks. We might be better off with another UI control for this, eg. a checkbox for 'Exclude Lesson from archives'

westnz commented 4 days ago

I think so, too, Adam.

kathrynwp commented 4 days ago

@adamwoodnz Agreed, I think a checkbox to exclude from archives (and the homepage) would be a great option.