how to make function in RSS feed like it does in posts

Here’s a link to a code snippet that you can put in functions.php to do what you want. By default, the RSS feed either shows the entire article when set to show “Full Text” in the Reading Settings or it shows the Excerpt field when set to “Summary.” Support for the tag can only be … Read more

Using More Tag in Combination with the_excerpt

first of all you don’t need to echo the_content(); and the_excerpt(); both methods already echod, second simply put the more link using permalink after the_excerpt(); like this. <?php // IN X USER GROUP if($customgroup==1 || // Are they in the custom group? $userinfo->usergroup == 66) { // or the admin of the website? the_content(); } … Read more

Redirect to page 2 after comment

After reading a bit on regex and preg, starting from a previous example of a similar problem and testing it I was able to answer my own question. I added this function to functions.php: <?php /** Plugin Name: WPSE (#167237) Redirect after comment */ add_filter(‘comment_post_redirect’, ‘redirect_after_comment’); function redirect_after_comment($location) { return preg_replace(“/comment-page-([\d]+)\/#comment-([\d]+)/”, “2”, $location); } It’s … Read more

How to delete read more span on single post view?

As stated in the docs, if the quicktag <!–more–> is used in a post to designate the “cut-off” point for the post to be excerpted, the_content() tag will only show the excerpt up to the <!–more–> quicktag point on non-single/non-permalink post pages. WordPress adds <span id=”more-‘ . $post->ID . ‘”></span> to the content in this … Read more

Do not show excerpt in post content

Don’t use the more tag to manually define excerpts. There’s a separate input field for that. If it’s not visible, go to “screen options” in the upper right corner of the edit screen to enable it. What exactly is shown on your single and archive pages depends on your theme. There is no general way … Read more