## Extremely slow pageload for long post when using the_content?

Question
My WordPress site has quite a few long posts that slow down page loading time exponentially. This only happens when using the post_content, for example, when using the the_content() and get_the_excerpt() functions. I ran some tests with the Query Monitor
0
3 years 0 Answers 51 views

## How to strip header tags & shortcodes from the_excerpt()

Question
I'm trying to learn how to strip "header tags" & "shortcodes" from the_excerpt()... Searched for an answer to no avail so thought Id ask the community. Thanks for your time Best Shaun
0
3 years 0 Answers 48 views

Question
I am using this function to limit the excerpt to the first sentence... function hello_first_sentence( $string ) {$sentence = preg_split( '/(.|!|?)s/', $string, 2, PREG_SPLIT_DELIM_CAPTURE ); return$sentence['0'] . $sentence['1']; } add_filter( 'get_the_excerpt', 'hell 0 3 years 0 Answers 52 views ## How can i limit the character length in excerpt? [duplicate] Question Possible Duplicate:excerpt in characters I have a question after reading this post ( 0 3 years 0 Answers 69 views ## Issue using ACF Flexible Content Sub Field for Excerpt Question I'm developing a site where the blog entries will be made using ACF Pro / Flexible Content Fields. Because the post entry content will no longer be entered into the default content editor, WP is unable to pull an excerpt. I patched together some code from searches earlier today and was able to fi 0 3 years 0 Answers 78 views ## has_excerpt() not working inside wp_query Question I am trying to check for an excerpt and if it doesn't exist then show the content but trimmed. Currently nothing is showing. <?php if (has_excerpt() ): ?> <p><?php echo get_the_excerpt(); ?></p> <?php else: ?> <p><?php echo wp_trim_wor 0 3 years 0 Answers 67 views ## Yoast highligh custom search result Question Maybe someone in the WordPress community can help me with this. I am using Genesis with WordPress and I have created some functions with the help from others on the internet to make custom search results in WordPress. With these functions the search results have the Meta title and descript 0 3 years 0 Answers 94 views ## Split the_content into two parts Question I want to split the content of a post into two parts. The First part is in an <strong>-tag, it is like a excerpt and in the second part i want to display the rest of the content. But I don‘t have any idea to solve this problem. Hope anyone can help me with that problem? 0 3 years 0 Answers 88 views ## Inserting shortcode is blanking excerpt – any ideas? Question I wrapped a shortcode around my post content and I have noticed it is making the excerpt blank on archive pages instead of auto generating one from the_content/post. At a loss as to what is causing it or what to try. Its not even outputting the shortcode in the_excerpt its just blank 0 3 years 0 Answers 76 views ## Modifying the_excerpt to include link to post doesn’t work for Latest Posts block Question I've modified the the_excerpt() tag to include a Read more link as follows: function my_excerpt_more($more ) { if ( ! is_single() ) { $more = sprintf( '<a class="read-more" href="%1$s">%2\$s</a>', get_permalink( get_the_ID() ), __( '
0
3 years 0 Answers 102 views