I would suggest a different approach. The option for manually adding post excerpt should go in a theme option as opposed to a custom field. Also you should use this hook for modifying the excerpt’s more text
http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_more
If the user is supposed to enter custom excerpt on a per-post basis, they can do it from the admin panel anyway.
Related Posts:
- Having different sidebar content for MANY pages?
- get_post_meta fields don’t show up on posts page
- How do I read the value of a custom field of the page?
- Advice needed for importing custom field data and database structure
- Get a post_id where meta_value equals something in a serialized meta_value field
- Get Meta from Custom Field of Image URL
- Getting the ID of any image for use in functions.php
- Limits, not all post are showen when querying for posts by view count
- Custom fields attached to a page template only show on edit screen when page is saved
- remove initial wysiwyg editor from cms page edit
- Displaying page image in the footer automatically
- Hide text if one custom field out of two is empty [closed]
- How to display a product features dynamically with icons?
- Save attachment ID instead of URL in custom field
- How To Show Get Adjacent Posts If Posts Are Sorted By Custom Field
- Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)
- How to get custom image field of specific post id
- How do I include a template file while allowing it to render its own dynamic content added via custom box?
- show a specific metabox dependent on the page template
- Outputting custom field on home.php not outside of blog list
- Load one page with parent and child pages
- Page template is missing fields or is invalid when I updating the template
- Append custom field items to content from plugin
- Display Child Page with custom fields within Parent Page
- Create download page from post option link
- Edit different parts of a page seperately
- same custom field for single posts
- Group pages by custom field values
- Is it safe to store a user setting you don’t want the user to ever modify as a user option?
- explode array within shortcode
- Can I count the number of users matching a value in a multiple value key?
- extend Meta Box / Document Panel
- Add multiple images to a page sidebar
- getEntityRecord without knowing the post type
- How to delete custom field “suggestions” from dropdown list
- How to load php file for specific page in admin?
- How to set default metaboxes on user creation?
- Metabox nonce PHP notice
- ajax jquery update custom field meta value front end
- How to break meta values into different items and avoid duplicates?
- ajax delete value from custom field array
- Add input field to ‘Pages > Edit Page’ through functions.php
- How can I query on the year part of a complete date in a custom field?
- get_post_meta not working inside loop
- How to display Meta Field Value?
- Upcoming Event: How do I sort database by custom date field, but ignore past dates?
- What is the cleanest way to extract custom variables from a post
- Add source URL from Feed WordPress (Syndication) plugin to a custom field in post editor
- Auto populate a meta box field from another meta box field when publish or save
- Find page IDs with specific meta tag key value pairs
- Order query by meta_value with multiple custom fields
- Display only past events on that page using Visual Composer Grid Bulider
- Why is my Blog Page ID == First Post ID?
- user Profile meta value as custom field
- Remove Body Classes
- Use WPbakery for own custom field [closed]
- Get posts with same meta value as current post
- Add custom field to all posts in specific post_type
- Change the sort order for posts to include custom field
- Button inside Custom Meta Box triggering the Update Button
- query posts custom field calculation value
- Get Data From wp_sitemeta for Multisite network
- Syntax Issue: How Do I Call A Custom Field Inside a ForEach Statement? [closed]
- Get categories query not working in function.php
- wordpress custom loop ascending descending posts by custom field
- Hide custom fields when empty
- Only show when content added via custom field
- How to add fields in custom registration form, validate it and aave to db? [closed]
- How add multiple wp_editor_box to new post
- Get YouTube video id from url in a custom field
- Related query shows same image in loop
- How to insert multiple checkbox values into post as custom fields from frontend
- Insert posting automatically based in acf field
- Data URI in custom fields
- Add specific custom fields to post formats
- Displaying an ACF list of users
- Fallback for empty custom fields
- Can You Build Page Templates Without Extra Files
- wp_editor on custom meta textarea field – images and html fails
- Problem with writting correctly a query posts args in WordPress
- Add a field to just ONE page
- get_post_custom_values problem, please help
- How to parse a huge list of users using a CRON function?
- How To Save Data From Remote APIs To ACF?
- comments_where Hook
- Is there any way to make a custom field for a post only if the author is a certain user?
- Use WP_Meta_Query To List All Values For 1 Key On Page Template
- Check for meta data before it is published
- Stop truncation of shortcodes in custom text fields?
- Save custom post data outside of default post form
- Sort custom fields in admin by last field added
- Wrap this custom field with hyperlink link
- custom select field populated by allocated post category
- Metabox nonce not allowing update
- Exclude empty fields from custom field calculation (Average)
- How to create Parent-Child relation for custom fields?
- How do i output images from URL’s added to the same custom field key
- Filter Query Post by Custom Fields(by date)
- Add CSS class to posts with certain meta key
- Match submitted array fields with the MYSQL database fields to update them correctly in PHP