• Resolved tonygeer

    (@tonygeer)


    Hi, I’m using query_post to pull the most recent post from a particualar category on the main page, it goes like this:

    query_post(‘category=1&showposts=1’);

    However, if I use the_excerpt within the loop, the amount characters displayed by default is too much, and when I use the_content, it’s not recognising the more tag that I have within the post’s body, it shows the entire post.

    Any solutions to this problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tonygeer

    (@tonygeer)

    Nevermind, I got it resolved.

    Nevermind, I got it resolved.

    That’s the most annoying “self-reply” that future users searching for a similar topic will find. Next week, next month a fellow WordPresser might want to do the same and will diligently search (as it is suggested)… just to find your nevermind “solution.

    Could you, please, post your solution for the benefit of others? Thank you!

    Thread Starter tonygeer

    (@tonygeer)

    Sorry you’re very right. The reason is I was a bit embarassed at my silly mistake, but of course others might make the same mistake in the future:

    I was putting spaces between the <!– and more, so it wasn’t working properly.

    Next time I’ll remember to post my solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting the more tag to work when using query_post’ is closed to new replies.