SEO
Requirements
Thanks for making a note of this. If possible, I would add making single lessons have an enticing social card to the task list So they can be shared on LinkedIn or X or Mastodon, etc.
@adamwoodnz during development of the learning pathway content, we discovered that Sensei has a featured to enable Lesson previews, which is what makes the individual lessons in the Beginner WordPress User course public.
Would it be possible to investigate whether we're able to simply enable this on all course lessons as default, instead of needing to enable it on each course lesson?
Would it be possible to investigate whether we're able to simply enable this on all course lessons as default, instead of needing to enable it on each course lesson?
Sure, we can take a look as part of this.
Single Lesson social card assets (see https://github.com/WordPress/Learn/issues/2446#issuecomment-2116942010)
Looking into this, lessons and courses appear to set the og:image to the featured image and since we have nice featured images, they look good:
| Example | Example |
|---|---|
However, the auto-generated descriptions are not great. I would suggest that content-wise, you create custom excerpts for each course/lesson.
Would it be possible to investigate whether we're able to simply enable this on all course lessons as default, instead of needing to enable it on each course lesson?
This is saved in meta field. You should be able to set it to true on lesson creation.
Would it be possible to investigate whether we're able to simply enable this on all course lessons as default, instead of needing to enable it on each course lesson?
This is saved in meta field. You should be able to set it to
trueon lesson creation.
It's registered here, with no default value, and no way to set the default value to true, unless I'm missing something.
It's registered here, with no default value, and no way to set the default value to
true, unless I'm missing something.
Maybe we could deregister and reregister with a default value, but I think this is a post launch task.
Feels like all that remains is checking that single lessons are indexed. This might need checking post launch as I think single lessons might be excluded with the current theme activated. @renintw can I leave this with you?
No problem, I plan to first address the remaining reported tickets and fix some broken UI that gives a poor user experience. After that, I will check the indexing.
However, the auto-generated descriptions are not great. I would suggest that content-wise, you create custom excerpts for each course/lesson.
This could also be specifically suggested to the training team to see if they want to enhance it?
This could also be specifically suggested to the training team to see if they want to enhance it?
Yeah I believe they are aware that custom excerpts will improve presentation on the site generally, but copying @kathrynwp here to note that it's going to help with SEO too.
Yeah I believe they are aware that custom excerpts will improve presentation on the site generally, but copying @kathrynwp here to note that it's going to help with SEO too.
Totally. From what I understand, @jonathanbossenger and @westnz are making sure there are custom excerpts on all lessons belonging to the four Learning Pathways, but given other work on everyone's plate, they were not prioritizing older lessons. That said, it would still be ideal to make sure they all have custom excerpts over time.
There are also Community courses in the mix – perhaps @harishanker could coordinate getting custom excerpts added to those?
Would it be possible to investigate whether we're able to simply enable this on all course lessons as default, instead of needing to enable it on each course lesson?
This is saved in meta field. You should be able to set it to
trueon lesson creation.It's registered here, with no default value, and no way to set the default value to
true, unless I'm missing something.
Not sure if this is still relevant, but you can set the default value of a post meta field via the filter here: https://github.com/WordPress/wordpress-develop/blob/6.6/src/wp-includes/meta.php#L717
Would it be possible to investigate whether we're able to simply enable this on all course lessons as default, instead of needing to enable it on each course lesson?
This is saved in meta field. You should be able to set it to
trueon lesson creation.It's registered here, with no default value, and no way to set the default value to
true, unless I'm missing something.Not sure if this is still relevant, but you can set the default value of a post meta field via the filter here: https://github.com/WordPress/wordpress-develop/blob/6.6/src/wp-includes/meta.php#L717
I've added all the related discussions about this to a newly open issue https://github.com/WordPress/Learn/issues/2807.