WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 6 months ago

#40765 closed defect (bug) (worksforme)

Not able to get contents after more tag.

Reported by: mukeshbeniwal Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7.4
Component: Posts, Post Types Keywords: reporter-feedback
Focuses: Cc:

Description

I am not able to get full content of a post, I am getting till the more tag with a link to the post, but I want the complete content of post. Is there any way to get full contents?

Currently I am using the following path to get post:

/wp-json/wp/v2/posts/{id}

Change History (2)

#1 @subrataemfluence
4 years ago

  • Keywords reporter-feedback added

Welcome to Trac and thank you for creating the ticket.

I tried to reproduce the issue:

  1. By editing an existing post and adding a "Read More" link in content
  2. Modified Custom Post Type, adding Excerpt field and updating post by adding an excerpt to it

In both cases the "content" key returned to full content in JSON. The only difference I used my custom post type by turning show_in_rest value to true.

/wp-json/wp/v2/api/trips/148

Can you please explain exactly how to reproduce the issue?

Thank You.

#2 @hellofromTonya
6 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Hello @mukeshbeniwal,

I'm closing this ticket. However, if the problem persists today, please feel free to reopen with step-by-step details on how to reproduce (so we can investigate). Cheers.

Note: See TracTickets for help on using tickets.