wp-api-v2-client-java
wp-api-v2-client-java copied to clipboard
While Creating / Updating post "slug" value gets ignored.
Hello Team.
While creating / updating a post, value passed for Slug is getting ignored.
Post post = PostBuilder.aPost()
.withTitle(TitleBuilder.aTitle().withRendered("ABCDTitleUpdate124").withRaw("ABCDTitleUpdate124").build())
.withExcerpt(ExcerptBuilder.anExcerpt().withRendered("ABCDTitle124Excerpt").build())
.withContent(ContentBuilder.aContent().withRendered("ABCDTitle124Content").build())
// This string will get ignored completely while creating / updating post.
.withSlug("sampleslug")
.build();
Regards, Sumit
I have faced with the same error. And still wait the answer) https://github.com/Afrozaar/wp-api-v2-client-java/issues/57
Methods withLink() & withSlug() not working. WordPress generates slugs itself.