WordPress.org

Ready to get started?Download WordPress

Forums

Conditional "more inside" at the end of a post? (6 posts)

  1. jbickers
    Member
    Posted 5 years ago #

    OK, I'm probably missing something really obvious ... but how can I get a "More inside"-type link to appear at the end of a post on the front page, but only if there is a break in the story, i.e. there actually is more inside?

  2. t31os
    Member
    Posted 5 years ago #

    This might be of help..
    http://codex.wordpress.org/Template_Tags/the_excerpt

    You can see an example of the excerpt usage on my site...
    Here

    When excerpt field is empty, XX amount of characters are taken from your post, else if excerpt field has content, that is displayed...

    Post back if you would like further help, though do have a read of the above link first please.

  3. Saurus
    Member
    Posted 5 years ago #

    Okay ... HOW did you get the "read more" to display in bold. I've been trying to do that in my site and can't get it!

  4. t31os
    Member
    Posted 5 years ago #

    <a class="more" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
            ..read more &raquo;
        </a>

    The class more has font-weight:bold set in the CSS...

  5. Saurus
    Member
    Posted 5 years ago #

    gak ... I can't find a single reference to a class for more, read more, or whatever:( I've been looking for that for a while now - which is why I asked - I thought there might have been something in a php file somewhere.

  6. t31os
    Member
    Posted 5 years ago #

    It's not a standard class, just create one for the link...

Topic Closed

This topic has been closed to new replies.

About this Topic