Make WordPress Core

Opened 9 years ago

Closed 6 years ago

Last modified 14 months ago

#40765 closed defect (bug) (worksforme)

Not able to get contents after more tag.

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

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
9 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 years ago

  • Milestone Awaiting Review
  • Resolutionworksforme
  • Status newclosed

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.