147 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in Europe
+1 more
PaulVictor says

I must admit that I’m a beginner when it comes to programming but so far Google and the WP codex have been a huge help but I have been struggling for hours with the following problem:

I have purchased a theme from TF that I customized myself and so far so good. But then I wanted the post description on the homepage to be ‘cut-off’ by a Read More tag because the post description cuts the text off by words, not by sentences.

When I add the <-!more-> tag to a post, it sometimes works depending on the point of the placement. Other times it simply disappears.

Again, since I’m a beginner I might be looking too hard and perhaps I’m overlooking the problem or if it’s an issue with the author’s theme. Could anyone please help me with this highly annoying issue?

Cheers!

Paul

P.S. I hope I’ve explained everything properly, if not I apologize!

221 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
NuclearThemes says

Check your theme’s file for the homepage, index.php unless its a custom home page template and look for “the_content();”, try replacing that with “the_excerpt();”

I can’t guarantee that will help as there are a number of possibilities but you tend to find the excerpt will cut off your content at a predefined number of characters keeping all at the same length.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by