If you adding this code in content.php then you should use conditions.
<?php if ( is_single() ) : ?>
<?php the_content(); ?>
<?php else : ?>
<?php the_excerpt(); ?>
<?php endif; ?>
Related Posts:
- How to remove “read more” link from custom post type excerpt
- Mandatory excerpt for custom post type
- How do I filter the excerpt metabox description in admin?
- is_singular() not working if called via callback function of admin-ajax.php
- Prepend regular Posts with custom slug, without affecting Custom Post Types?
- Custom post-type in root directory, blog posts in subdirectory
- How to stop subdirectory wordpress install adding head elemets to entire site?
- Add $more_link_text parameter to the_excerpt()
- How to post twitter like updates on wordpress
- Blog page showing same content as homepage
- Display custom fields on post excerpt or teaser
- How to create Blog Post Specific Widget
- custom post data – how to
- Excerpt function for any content
- Display Only Certain Category In a Custom Page Template
- How do I show a link or ‘Read More’ button on a custom field excerpt when it is less than the word limit
- Why the_excerpt() function returns excerpt on the Home page and trimmed content in sidebar?
- Why is the output of a call to the_excerpt different when the call seems to be identical?
- How can I add in post’s the text “No content”
- Excerpt length: get first paragraph
- Default excerpt for parent of a custom post type
- Auto generate excerpt from ACF field on a CPT that does not support excerpt or content
- Add Pagination in custom Blog page template
- Mandatory excerpt for custom post type
- How can we display full post on home page rather than excerpt
- Adding specific custom fields (images) to post excerpt
- Post display in separate page [duplicate]
- Shortcode in excerpt
- Keep custom read more link on the same line as excerpt text
- Certain number of posts with certain excerpt length
- Excerpts and Custom Post Types
- erase post excerpt limitation [×]
- Excerpt for each post type and for is_front_page
- Add Excerpt On Quicksand Plugin
- Add /blog to the “post” post type url
- Wp-theme Development
- Custom post type disappeared in wordpress when I transferred theme to Showit
- Register CPTs using Dashicons for admin menu icon in WP 3.8
- Save Press This Posts in a Custom Post Type
- List all posts commented by current user
- the_author_posts_link() for authors of custom post types
- Change title in head on Archive page
- get_the_ID() is working on my local development but not on staging server
- Can /%year%/%monthnum%/%day%/ structure tags be added to custom post type permalinks?
- Retrieving values of custom fields in Quick Edit mode
- One to many custom post relationships
- Backend search; include CPT meta?
- Custom Post Loop in Archive returns same the_permalink
- posts_nav_link on single post template
- Echo current custom post type
- Get only parent terms from wp_get_post_terms
- How to: add option to add more checkboxes on custom post type
- Exclude the parent custom post-type posts only
- Auto-generated posts not showing in backend (but being counted!)
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Including Custom Meta with posts_where query
- Adding HTML tags or css classes to admin columns
- How to set YouTube video as featured image?
- Widget: Custom Post Type Post Listing Dropdown on Admin Side
- How to order WP_Query by parent for hierarchical Custom Post Type?
- redirect automatic page that serves custom posttype content
- Is it possible to use have_posts function to list custom post type posts inside a category?
- Add Custom Post Type of specific Custom Taxonomy to regularly blog loop
- Ordering values entered in Custom Taxonomies
- Page for custom post type
- Getting thumbnails of a custom posts featured images in a page-templates metabox
- detect when a custom post is cretaed for the first time
- Delete a custom post function value
- custom post type archive page has 404 error even though has_archive is true
- Custom fields not saving in newest WordPress 3.0.1
- Can’t change posts per page in WordPress Post Type Query
- How to constrain the results to a specific post_type on tag archive page?
- Custom Post Type – Portfolio no longer works
- Showing a meta box in a custom post type on a page
- Having Issue on Getting Metabox Checkbox Value
- Masonry Append WordPress posts with singleMode
- How to create a archive template for custom post type [duplicate]
- add_action ‘init’ from inside a class for custom post types
- Exclude auto drafts from listing of custom post type
- Create a post automatically if search result has zero results
- How to stop a permalink redirecting to a page whit same slug but different permalink
- ACF field check value of field on all other articles
- Bulk trashing post ‘fails’
- Do not load the categories in Category.php
- Custom Post didn’t display on tags page
- get_previous_post_link and get_next_post_link of custom post type that share custom field value
- Displaying the Taxonomy and a Queried Term on a taxonomy.php page?
- Custom post type not being pulled in widget
- How to Display CPT Posts on index Page
- How to divide posts (custom post type) content on multiple pages?
- Query Posts with Custom Taxonomy from a Custom Post Type
- Custom post type navigation on static page
- How to apply order on custom taxonomy and custom meta key on custom post type
- Updating a custom field in a custom post type
- Register a title automatically with a relationship field
- Custom Form Data save after Login User
- Woocommerce product page is not showing custom css [closed]
- Sortable admin columns ordering from custom fields isn’t combine com search and Dropdown filter
- Calling custom taxonomies
- How do I add the “orange counter” next to a Custom Post Type?