why more tag is not working in my wordpress site

The <!–more–> tag is a replacement for an excerpt. You want to use the excerpt or <!–more–> tag on you blog/archive page, NOT on single posts. The <!–more–> tag will not work on a single post like this: https://igntimes.com/20-amazing-youtube-tricks-and-tips/ However, it should work on the blog (in your case your homepage, https://igntimes.com/. But you only … Read more

Read more button not working

From the Codex: Excerpts (teasers) can be shown on WordPress through two methods: The first, keeping the the_content() template tag and inserting a quicktag called more at your desired “cut-off” point when editing the post. The second, by replacing the the_content() template tag with the_excerpt(). If one of those conditions is met, and you are … Read more

Search results highlight breaks my read more link

Try this. function search_excerpt_highlight() { $excerpt = get_the_excerpt(); $keys = implode(‘|’, explode(‘ ‘, get_search_query())); $excerpt = preg_replace(‘/(‘ . $keys .’)/iu’, ‘<ins class=”search-highlight”>\0</ins>’, $excerpt); echo ‘<p>’ . $excerpt . ‘&hellip;’ . supralegal_read_more_link() . ‘</p>’; } function supralegal_auto_excerpt_more( $more ) { return ”; } add_filter( ‘excerpt_more’, ‘supralegal_auto_excerpt_more’ ); function supralegal_read_more_link() { return ‘ <a href=”‘. esc_url( get_permalink() … Read more

get_posts displaying wrong permalink for “continue reading” link

You need to reset the post data after your get_posts loop since your calling setup_postdata. It would be better to remove the setup_postdata all together. global $post; $recent_posts = get_posts( $yourargshere ); foreach($recent_posts as $post) : $return = ‘<h4 class=”recent-post-title c0″>’ . $post->post_title . ‘</h4>’; $return .= ‘<p class=”recent-content c0″>’ . apply_filters( ‘the_excerpt’, $post->post_excerpt ) … Read more