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

Yoas info in categories #2

Closed
ebisbe opened this issue Mar 23, 2017 · 5 comments
Closed

Yoas info in categories #2

ebisbe opened this issue Mar 23, 2017 · 5 comments

Comments

@ebisbe
Copy link

ebisbe commented Mar 23, 2017

Hello,

I've found you plugin really helpfull but I have no clue about wordpress. Do you think there's a way to return yoast info in categories from woocommerce?

@ChazUK
Copy link
Owner

ChazUK commented Mar 24, 2017

I can have a look at this, but haven't used WooCommerce before.

@ebisbe
Copy link
Author

ebisbe commented Mar 24, 2017

If you can look it would be awesome but if you can provide some links on what I should be looking in order to understand this issue is fine too. I've found that wordpress has too much info and not all is relevant.

I've tried to modify your plugin adding

		// Posts
		register_api_field( 'post',
			'yoast_meta',
			array(
				'get_callback'    => array( $this, 'wp_api_encode_yoast' ),
				'update_callback' => array( $this, 'wp_api_update_yoast' ),
				'schema'          => null,
			)
		);

changin the value 'post' for 'tax', 'taxonomy', 'term'. But nothings apears on the response.

@ebisbe ebisbe closed this as completed Aug 22, 2017
@Poliuk
Copy link
Contributor

Poliuk commented Sep 15, 2017

Hey @ebisbe did you find a solution for this? I'm also trying to expose the yoast fields for the categories and post_tags

@ebisbe
Copy link
Author

ebisbe commented Sep 15, 2017

@Poliuk Nope... with the new version of the woocommerce api it exposes for products directly the metadata but it's not working for categories.

@Poliuk
Copy link
Contributor

Poliuk commented Sep 15, 2017

Thanks @ebisbe! We are talking about this here: #3

ChazUK pushed a commit that referenced this issue Apr 10, 2018
ChazUK pushed a commit that referenced this issue Apr 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants