read more doesn’t display

I think if( has_excerpt()) return false that’s way its return full content remove condition and only use the_excerpt() then it will work. I have another solution that i use 🙂 $content = get_the_content(); $short_content = implode(‘ ‘, array_slice(explode(‘ ‘, $content), 0, 10)); echo $short_content; this function returns 10 words of post. after echoing content you … Read more

read more, even if excerpt not trimmed

Try a simple string replacement. The following is untested: function fabs_excerpt_more($output) { global $post; $output = str_replace(‘</p>’, ‘<a class=”more” href=”‘. get_permalink($post->ID) . ‘”>></a></p>’, $output); return $output; } add_filter( ‘excerpt_more’, ‘fabs_excerpt_more’ );

Any Ideas for Including “More Tag” with get_pages($args)?

Here’s the code I am using (successfully): $pages = get_pages($args); foreach( $pages as $page ) { $content = $page->post_content; // Get content parts $content_parts = get_extended( $content ); if ( ! $content ) // Check for empty page continue; $content = apply_filters( ‘the_content’, $content ); ?> <h2><a href=”https://wordpress.stackexchange.com/questions/258494/<?php echo get_page_link( $page->ID ); ?>”><?php echo $page->post_title; … Read more

Read more link to external webpage

Yes, you can use the Read More filter: https://codex.wordpress.org/Customizing_the_Read_More#Modify_The_Read_More_Link_Text Per the discussion below, in this case, there’s a plugin called Page Links To that may solve your problem. You would create a post in WP but set its permalink to the external URL you want to link to, so it would appear on the front … Read more

Excerpt using Read More Tag

You just need to set the first argument of the_content() to an empty string: <?php the_content( ” ); ?> If you don’t pass an argument it will use the default, which is a link with the text “(more…)”, but by passing an empty string, the empty string (i.e. nothing) gets displayed instead. If you want … Read more

How to use read more text

Sure, this is possible. The starting point is a filter like this, which I understand you are currently using in some form: add_filter (‘excerpt_more’,’wpse333680_more_text’,10,1); function wpse333680_more_text ($more-text) { return ‘Everything you always wanted to know about this >>’; } The function you use for the filter can easily be reused elsewhere. You could echo it … Read more