Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.76k stars 890 forks source link

[Enhancement] Provide template variable for sub parent child page titles #12156

Closed Pcosta88 closed 5 years ago

Pcosta88 commented 5 years ago

Is your feature request related to a problem? Please describe.

If a user nests a page under two other pages

screen shot 2019-02-04 at 10 48 44 am

There is not a template variable here https://kb.yoast.com/kb/yoast-wordpress-seo-titles-metas-template-variables/ to output the sub parent page.

It only has %%parent_title%% which outputs the parent's title not all the sub page titles

add parent title variable

screen shot 2019-02-04 at 10 50 01 am

Only the first child's title gets outputted not original the parent page title

screen shot 2019-02-04 at 10 50 21 am

Describe the solution you'd like

Provide template variable for sub parent child page titles

why you think the feature request is something we should consider for the Yoast SEO plugins?

Improve Content SEO

moorscode commented 5 years ago

The relation between parents and children should be implied by using the Breadcrumbs (and JSON+LD included in them) instead of doing it by copy that matches a title from a parent (or higher up).

I'm not sure what added value Parent title is giving and if it is suggesting something we don't recommend. @jono-alderson what's your take on that?

jonoalderson commented 5 years ago

Hmm. Struggling to come up with a use case for this. Got an example?

Pcosta88 commented 5 years ago

@jono-alderson No use case other than it provides options for how the user wants to customize and optimize a title.

jonoalderson commented 5 years ago

I follow, but I can't think of examples of where anyone would want to do this. Do you have some examples in mind?

Pcosta88 commented 5 years ago

@jono-alderson I do not have a specific example but rather a hypothetical.

Say I am a lawn care business and I have nested pages:

Say I have also done my keyword research and turns out folks are looking for Residential Trimming Services in Google. I want my Child Page 2, to rank for that.

BUT I want a different title to appear when a user visits the Child 2 page. This means I will need to manually edit the SEO Title in Yoast.

If I had the right variables I could output: Residential Trimming Services as the title automatically instead of going back into the page to make the changes manually.

jonoalderson commented 5 years ago

That feels very nuanced, and like it'll cause errors/issues more often that it'd produce a sensible title. In this case, I think it makes more sense for people just to edit/set those titles manually.