So you are basically also looking for a fallback in case your excerpt is empty? I suppose this question/answer could be helpful for you: “get_the_excerpt() with fallback like the_excerpt()“. It describes, how to build your own “excerpt” in case there is none – like this:
$excerpt = get_the_content();
$excerpt = esc_attr( strip_tags( stripslashes( $excerpt ) ) );
$excerpt = wp_trim_words( $excerpt, $num_words = 55, $more = NULL );
In your case you would probably add the ID to it: $excerpt = get_the_content(1);
. I don’t know if your SE privileges allow this, but should probably add “I’m looking for a solution for when has (the article) no defined excerpt / the post_excerpt is empty” to your question to clarify what you are actually looking for…
Related Posts:
- Get excerpt using get_the_excerpt outside a loop
- How can i display the content in plaintext
- How to force excerpts / teasers in the loop
- Exclude filter on front page
- the_excerpt(), get_the_excerpt() and the_content() all killing “the Loop”
- Content/Excerpt length control for a specific loop?
- Can I use both a custom excerpt and a trimmed excerpt?
- Combining the_excerpt with the_content
- the_excerpt not showing posts
- Unable to change the “Read more” text inside the_excerpt
- How to get the excerpt for is_home() outside of the loop isn’t working
- “the_excerpt” in loop just keeps repeating first post?
- Only Show Excerpt After First 3 Posts
- Excerpts not showing on main page
- Excerpt isn’t working or am I missing something?
- to get a little more content after ‘read more’ inside loop
- Limit article to 100 characters. Can’t use the_excerpt…
- Return only content in excerpt field in loop
- How to add excerpt in loop in Twenty Eleven theme?
- Counting the posts of a custom WordPress loop (WP_Query)?
- Get post content from outside the loop
- How to split a loop into multiple columns
- Is it necessary to reset the query after using get_posts()?
- Is there any difference between the_title() and echo get_the_title()?
- Pagination not working on home page
- How to Change Loop to Order Posts by Views (using wp-postviews plugin)
- Get ID of a page containing secondary loop in content
- is_home, and is_front_page conditional problem
- Is `query_posts` really slower than secondary query?
- Are there any scenarios where the query_posts may be used?
- ACF Repeater loops and resets – where is the reset_rows() documentation? [closed]
- Exclude category by slug for for each loop
- WordPress Loop Through Particular Pages
- Display date only once for a each set of posts relating to that date
- Load comments per post on click with AJAX
- The main Loop is not starting in a custom blog template page
- connect last post with first post
- Chopping up a large ajax request of around 200 posts [closed]
- Custom loop with conditional statement to separate each terms
- Breaking the loop?
- How to get an array of years from all of the search results, and use it to filter by year the paginated loop?
- Next and Previous loop
- Query reset problem or flawed code to enable custom post type query
- How do I order my loop query?
- Orderby my needs in foreach loop like by title or something?
- Exclude posts from main loop based on meta value
- trouble calling an import class from an action in a plugin before wp_cron executes
- Blog page Server error 500 with stick post loop in query.php
- How can I paginate this?
- Obtain page data and use regular loop
- How can I load posts starting from, and including, the current post?
- How to fix pagination for custom loops?
- Show all posts using the template page and the loop?
- ‘Auto Draft’ Post showing in wordpress loop
- How do I display an image before the first post of the loop when I’m using get_template_part?
- Multiple get_posts() queries on one page
- How to get the post excerpt using post object?
- Change date format
- Custom loop not working
- How to stop the continuation of posts on the second loop from where the first ended
- In Custom page – next_posts_link Not working while previous_posts_link is working
- Escape current post from loop
- Why isn’t my multiple loops working?
- The_excerpt() doesn’t parse – how to change that?
- Trying to edit archive.php to only show post extract, with featured image
- How do I display the latest posts from three different categories?
- facebook like, tweet and google+1 buttons inside the loop on home, archive and search pages and missing facebook like buttons
- Loop Offset for tag based “Related Posts”
- How do I put my frontpage featured image in a page template for home.php?
- How to print redux gallery feilds id? [closed]
- Why the first with flexslider appears as blank on my code?
- Rendering pages
- How can have a conditional template tag based on the main loop within a secondary loop with new WP_Query(), using get_template_part()
- Reset Loop get_posts();
- WP_Query is only looping home page, not pages
- How to filter posts by category INSIDE the loop
- Help with if and else statement
- How to show multiple attachements together with Scribu’s Posts 2 Posts connector?
- Custom Header added within Dashboard pages, is this possible with custom template files?
- Loop order issue with Ajax filter
- Adding a second loop breaks everything
- Custom Query with Sticky Posts
- How to display a loop of custom post types in columns
- is it bad to copy the loop for a template?
- I want to load post in bootstrap Modal dynamically
- Query posts and display all dates in repeater field in chronological order
- Return only one post format in index.php [duplicate]
- How to display just video post format?
- Multiple loops in set intervals with code in between
- Modify widget to output posts in custom order
- How to execute custom loop before loop content?
- Sorting posts to make those with post thumbnail show up first
- This webpage has a redirect loop issue with SSL page
- Buddypress Group Activity Loop Filter activity type [closed]
- get_posts and wp_autop (remove filter)
- Trouble preventing duplicate posts between 2 loops on homepage
- $do_not_duplicate is not working in genesis theme
- Loop displays current page
- wp_mail function not working in user query loop
- How to set and retrieve cookies while in the loop