Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134470

Freg on "Add comment number in read more link"

$
0
0

Hello,

I would like to replace the "Read more" text from the_content("Read more");

By:

- "Read more" if there is no comment
- "Read more and the comment" if there is one comment
- "Read more more and the X comments" if there is more comments

I have tried:

the_content("Read" . comments_number('more', 'more and the comment', 'more and the % comments' ));

It shows "Read" a the bottom of the article with the link and "more and the 2 comments" at the top of the article with no link… so it does not works…

If someone can help me that would be great.

Thank you :)


Viewing all articles
Browse latest Browse all 134470

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>