I actually solved it myself, it turns out there was this piece of code which I removed that solved my problem:
function custom_excerpt_length( $length ) {
return 0;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
Not sure what it does though, but it doesn’t seem like I need it.
Related Posts:
- How to correctly add Javascript in functions.php
- Genesis – Customize search form
- Set media upload attachment link to none and hide it in WP v3.5
- How to set custom cookies before output
- How to use wp_insert_user on WordPress Multisite?
- Why does this echo values in the wrong order?
- On this day PHP code
- Print out WordPress user ID – two sites with same code but different output
- How to add default images into theme customizer image control?
- Woocommerce: How to override core functions in functions.php?
- Add custom HTML to posts page
- Successful or Error Message after running mysql code in functions.php
- How do I get a list of popular posts by views?
- sidebar isn’t showing, what’s wrong w/ this code?
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- How to run PHP code in Text Widget with no plugin in WP 4.4
- How to only show page id as body class?
- Insert array data on plugin activation
- Auto crop images in WordPress
- $wpdb->flush(); breaks the loop
- get post based on category chosen in drop down – The ajax method
- Is there an equivalent to WP_Error object I can return in the case of a successful REST request?
- Extending the WP_Widget_Text class
- Set the background to a default image if there isn’t a specified “featured image”
- Proper syntax or method for keeping url in modified isotope / category links
- WordPress Access allowed to fewer pages till user logs in
- How to pass aa JS variable to PHP?
- Gutenberg block – Save PHP function’s output as HTML?
- different id for same element visual composer [closed]
- user_profile_update_errors hook not executing
- Adding number to date not working [closed]
- Changing the default object embed sizes?
- How to exclude tags and categories from a function?
- Programmatically inserting post through URL – when including wp-load.php, it’s redirecting to wp-admin/install.php
- Custom Theme’s “Preview Changes” Doesn’t Work for Previously Published Posts
- curl_exec causes timeout on mod_fcgid
- WordPress Stripping Colons?
- Custom Field IF/ELSE PHP
- Fatal error: Call to a member function query() on a non-object
- Run str_replace on title and save the output to a custom field
- Which function crops images in wordpress?
- Remove dash from blog title wordpress
- Adding a line of text to php code
- wp_delete_comment takes two tries to delete – then deletes all comments
- WordPress Custom SQL Table with UserID Filter for results
- How to end a while loop when used in a fetch assoc function [closed]
- Why my loop isn’t working? [closed]
- How to use AJAX to call php page with parameter
- Menu Custom Data Attributes
- Pass return-path additional parameter in wp_mail
- How to get image from url from the database?
- WordPress meta_query >= &
- Change header on pages displaying taxonomy items
- How to override a plugins script
- Comparing Dates from custom field
- Prevent Company Name From Translating
- Displaying Slider in Front Page (home) using Customizr Theme
- Usage of var keyword in the core
- Taxonomy term description with style, only if the description exists?
- Ajax URLs without #!, how to prevent falling into single.php on load or reload?
- PHP displaying wrong custom taxonomy images
- Slow site initial load time
- Page load timer?
- How to sort posts by active category in WordPress?
- wordprees multi-site in user panel add filter
- WordPress custom php script to match standard page layout
- copy fields value to another field
- Get parent category name when only child category is applied to a product
- Updated Php version from 5.4 to 7.2 and getting “PHP installation missing the MySQL extension needed by WordPress”
- Before & After Content – After Content directly below Before Content when using require_once
- Get Child of Child Pages in custom Menu
- Latest posts feed with a specific post always first
- Top Authors list by highest post views with Ajax pagination
- WordPress Post undefined error with Post Date (New to Wordpres Dev)
- From php web to wordpress conversion, href changes only in URL
- How can i put php code on the wordpress page?
- What’s the correct offset value for order ASC?
- can’t grab PHP $_POST variable
- Setting at job with shortcode not working
- How to solve 404 permalink errors on nginx server
- Ajax Load more CPT via shortcode
- Loop 1 user randomly
- Order by in foreach
- Sort by multiple options in custom field
- Query seems to be duplicated
- two sites, same code, different presentation
- WPMU schedule doesn’t execute actions
- ISOTOPE – Missing/Invalid Arguement Get Terms
- doubled content
- Adding if statement to content for homepage
- Add Condition if WPBakery Page Builder Used on Page or Not
- Data inserted in database, but ajax calls error function
- how to import contacts from php to wordpress
- How to add active class dynamically
- I’m not able to get access $wpdb in my php file in wordpress
- Submit cf7 form to cfdb as pdf/BLOB [closed]
- Correct way to perform a GET to another PHP file hosted on wordpress
- Understanding responsive imagery
- How to get meta box labels?
- get_query_vars always retruns empty value