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

WordPress Trac noreply at wordpress.org
Fri Oct 4 20:19:26 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 vizvizka):

 The issue occurs when I retrieve the post using the default WordPress
 "posts" endpoint like this:

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

 I see that the content field stops at the "more" tag and does not return
 the content after it. However, when I visit the post directly on the
 website, I can see the full content.

 I’m not using any custom post types, just regular WordPress posts. I want
 the entire post content, including whatever comes after the "more" tag. Is
 there a specific parameter or setting I need to include in my request to
 ensure I get the complete content?

 Thank you in advance for your help!

-- 
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