[wp-trac] [WordPress Trac] #40765: Not able to get contents after more tag.

WordPress Trac noreply at wordpress.org
Fri Apr 5 06:00:15 UTC 2024


#40765: Not able to get contents after more tag.
-------------------------------+-------------------------
 Reporter:  mukeshbeniwal      |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:  4.7.4
 Severity:  normal             |  Resolution:  worksforme
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+-------------------------

Comment (by boceksumuklu):

 Use the ?_embed parameter: By appending ?_embed to your request URL,
 WordPress will include additional embedded data like the full content of
 the post.

 For example:
 /wp-json/wp/v2/posts/{id}?_embed

 Use the fields parameter: You can specify the fields you want to include
 in the response. For full content, you would use content.rendered.

 For example:
 /wp-json/wp/v2/posts/{id}?fields=id,title,content.rendered

 These methods should provide you with the full content of the post instead
 of just the excerpt.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40765#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list