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

Not updating tag metadescription #16

Open
BaggioMarco opened this issue Jan 28, 2022 · 3 comments
Open

Not updating tag metadescription #16

BaggioMarco opened this issue Jan 28, 2022 · 3 comments

Comments

@BaggioMarco
Copy link

BaggioMarco commented Jan 28, 2022

Hi,

first thank you so much for this great plugin, really.
I'd like to ask you how could I solve the issue related to the update of the 'yoast_wpseo_metadesc' for tags.
if I create a post, your plugin successfully update the field 'yoast_wpseo_metadesc', but if I create a new tag, the tag get created, but the metadescription is not.

Could you please help to undestand why and how could I do it?
Here an example of my code:

    tag_post = {
        'name': 'my new tag''
        'description': '<p>This is the tag description</p>',
        'yoast_meta': {
            'yoast_wpseo_metadesc': 'THIS SHOULD BE THE METADESCRIPTION',
        } ,

    }
    r = requests.post(url + '/tags', headers=header, json=tag_post)

Just to let you know that looking at the endpoints in /wp-json/wp/v2/tags, your plugin added correctly the field 'yoast_wpseo_metadesc', but I cannot edit it using the POST method.

PS: I did not test the same approch with categories (/wp-json/wp/v2/categories), but maybe I guess that if it does not work with tags, maybe the same issue could be also while creating yoast metadescription for categories

thank you in advance

@ChazUK
Copy link
Owner

ChazUK commented Feb 1, 2022

Hi @BaggioMarco, I haven't worked on this plugin for some time, but I'm going to take another look at it this weekend and give it some TLC. I have a feeling the official plugin might offer some more features by now.

@BaggioMarco
Copy link
Author

thanks @ChazUK! Regarding the official plugin I could not find an example on how to add a Yoast metadescription by rest API (POST method on a simple Wordpress post). How could I do it? Thanks in advance,

@tzoltan31
Copy link

@BaggioMarco did you manage to do this? i cannot get it to update the metadesc for the life of me

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