All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

read more functionality, how.

  • # January 27, 2009 at 10:57 pm

    I did a JQuery loop thing so I have my most recent post showing on my home page.. I want it to have the read more functionality..I put the "more" tag think where I want it in the post but the whole blog post still shows on my home page..

    I found this site that seems to talk about it.
    http://codex.wordpress.org/Template_Tags/query_posts

    Under the "If you want to use the Read More functionality" section it gives some code but I dont know what to do becuase I dont have a global $more; section of code to change to "0"

    I tried adding it but I dont know enough about PHP code and its not working

    Can anyone help?

    # January 28, 2009 at 2:53 am

    This reply has been reported for inappropriate content.

    if your only wanting a snippet of your latest post, use the mini loop, and do the show_excerpt() php function.

    this has the "read more" functionality you want

    # January 28, 2009 at 2:00 pm

    This reply has been reported for inappropriate content.

    Do you know where I can find that code?

    # January 28, 2009 at 2:53 pm

    This reply has been reported for inappropriate content.

    "LinCSS25" wrote:
    Do you know where I can find that code?

    here it is again:

    Code:

    <a href="” class=”red”>Read more…

    change the class to what you want, that is my class for my css

    remember I have that in my main home page, but my main home page is not in wordpress, it hould work for you however, but it is a snippet

    # January 28, 2009 at 4:13 pm

    This reply has been reported for inappropriate content.

    yeah I have my set up a bit different but I use parts of your code to figure out how to get it to work. Thanks!

    # January 28, 2009 at 4:21 pm

    This reply has been reported for inappropriate content.

    "LinCSS25" wrote:
    yeah I have my set up a bit different but I use parts of your code to figure out how to get it to work. Thanks!

    that should work for you, your only taking the excerpt.

    good luck

    # January 29, 2009 at 5:33 pm

    This reply has been reported for inappropriate content.

    did you get this to work lin?

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed