wp-api-v2-client-java icon indicating copy to clipboard operation
wp-api-v2-client-java copied to clipboard

While Creating / Updating post "slug" value gets ignored.

Open BitWielderSumit opened this issue 4 years ago • 1 comments

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

BitWielderSumit avatar Mar 17 '20 08:03 BitWielderSumit

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.

hasanli-orkhan avatar Jun 17 '20 21:06 hasanli-orkhan