Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve parent_title using REST API #9263

Closed
IreneStr opened this issue Mar 19, 2018 · 0 comments
Closed

Retrieve parent_title using REST API #9263

IreneStr opened this issue Mar 19, 2018 · 0 comments

Comments

@IreneStr
Copy link
Contributor

Currently, we're using jQuery to retrieve the parent title of pages and categories (see https://github.com/Yoast/wordpress-seo/blob/trunk/js/src/wp-seo-replacevar-plugin.js#L494). We should use the REST API instead to make it work in Gutenberg as well.

Setting a parent

Pages

  • In the classic editor, you can set a parent for a page in the metabox on the right-hand side.
  • In Gutenberg, you can set a parent for a page in the Document sidebar under the 'Page Attributes' tab.

Categories

  • In the classic editor, you can set a parent for a category under 'Edit Category'

WordPress REST API

WordPress REST API handbook: https://developer.wordpress.org/rest-api/reference/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants