get_the_content() does what it’s supposed to, gets the content. You’re looking for get_the_excerpt(). 😉
Alternatively, using what you have, it should cut off wherever you put <!-- more --> in your post when using get_the_content().
Related Posts:
- Stop WordPress automatically adding tags to post content
- How to show related posts by category
- WordPress removing tags?
- How to get all posts related to particular category name?
- get all posts ID from a category
- Update all posts automatically when using post_meta
- Search & Remove Specific Shortcode From All Posts
- How to display posts by current user/author in a custom page template?
- Shortcode Not displayed at the Right Place [duplicate]
- Show the title of the latest post by author
- Setting pagination for images attached to a post
- Query only Posts from Both of Two Category?
- is there a better way of combining this?
- WordPress get posts by date without query_posts
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- Hide Post comments when displayed via WP_Query
- Posts are not showing up on particular category
- get selected post using $_GET
- setup_postdata doesn`t seem ot be working
- Encrypt / Decrypt Post Title and Details
- Get Posts via Taxonomy Term Name with Space
- UberMenu list current user’s posts as menu items
- get_next_post() and get_previous_post() return wrong posts
- Get posts by name and taxonomy term
- Inserting custom data to the_post() during loop
- do_shortcode within post query
- Get mixed category random posts
- WordPress not opening posts with only numbers if permalink is post_name
- Limit popular posts by days
- How to get rid of shortcodes in post content once and for all
- Why is querying posts messing up my pages?
- Is there a straight-forward way to iterate over all shortcodes in a post?
- How can i display gallery shortcode output under Post text
- How to display Common posts from specific Tag & Category with Shortcode
- Post Loop Missing Most Recent Post
- Include sticky posts on the static page front page
- Get attachments for posts that belongs to a specific category
- Posts loop displaying the same post data
- How to Get Posts, Including Private Ones?
- How to get post content from an array of ids?
- Display Posts with template on a Page
- Number of displayed posts
- Shortcode with ‘year’ parameter
- How come a YouTube link isn’t transformed into a shortcode inside the post content?
- Is it possible to add a shortcode below post title?
- How to give classname to post if post has no content?
- WordPress 302 Redirect to Random Product/Post/Page
- Custom Articles page only showing a limited number of posts per page
- How to get post with slug and exclude categories
- How to convert query sql to shortcode in wordpress?
- How can I add 2 buttons with shortcode
- get_posts not pulling the correct number of posts
- Get x recent posts by author?
- List latest posts with least comments in WP-Admin
- Shortcode for tables which can include comma and linebreaks
- post/page content
- How to show multiple posts thumbnail, title and date in widget
- I need to create “View Profile” and “Edit Profile” links by incorporating the Post Title/ID, but can’t seem to manage it
- Show only posts with titles/permalinks that do not contain certain words
- Change published date and time using SQL query for page in every 5 hour
- How to merge the content of posts that have the same title?
- How to add first 3-4 post tags on WordPress Post Title
- get category in list of posts // shortcode for custom related posts
- shortcode // get posts by ids
- get posts, run a custom query, and join the results
- Display “no post” message
- Featured Story Shortcode not outputting content
- Function is printing twice – any suggestions?
- Contact Form 7 Shortcode not recognized inside another shortcode
- Display Post from Custom Post Type with Shortcode
- wp_insert_post() Add and specific ID to the body of that
- Add a url parameter to the current post and read it in a shortcode
- get_next_post() not working with future post status
- Extracting the permalink from a post instance
- Posts page listing pages as well
- Secretly passing post ID/title etc into a shortcode form automatically to link submission to post
- WP_Query to get posts in a specific tag or has post_format
- I need show posts by customer (Shortcode)
- How to Get Position of a Post from a category and tag
- How to add navigation arrows to manually slide through posts?
- Is it possible to query a category with specified posts?
- Shortcode: How to add custom posts?
- Any difference betweenn posts and pages for one page?
- Shortcode for printing post titles
- How to use extract shortcode in loop?
- How do I paginate posts page with $wpdb?
- Display only posts with comments
- Bulk Attach Or Insert Media To Post Without Opening Post Editor
- Displaying posts on Homepage
- Load posts from external source if not found in database
- How do I add an article to specific page?
- get value from post to sidebar
- WordPress Yoast SEO plugin Post Save/Update Issue
- Insert Shortcode exactly at the end of the content
- Display posts from another page on home page in wp-editor
- append $_GET parameters to post
- Word count for all posts of all authors
- View post with specific category id and name which I selected in the backend (drop-down option)
- Simple shortcode to check if a user has commented on a certain post
- Translation related post text to Arabic