WordPress.org

Ready to get started?Download WordPress

Forums

accessible <--! more --> tag (5 posts)

  1. tudorbob
    Member
    Posted 9 years ago #

    I am new to wp and am just working my way through the kubrick theme and trying to educate myself with the tags and how to use them. I am also aware that accessability rules state that you can not have more than one link on a page with the same text. This posses a problem for the <--! more --> tag and a few other dynamicly inserted links. I have read this post http://wordpress.org/support/3/4073 on how to edit the more tag with the title of the document so instead of it reading read more it reads the title of the page.

    What I would like is to be able to put a bit of text which would be included with the title such as "read more of how to eat cake" which i feel is a more obvious link to have then just "eating cake".

    I hope that is understandable.
    Any help appreciated.

  2. NuclearMoose
    Member
    Posted 9 years ago #

  3. Kafkaesqui

    Posted 9 years ago #

    Instead of using the_title() as recommended in the other thread, use the *internal* variable for the post title, like this:

    <?php the_content("read more on $post->post_title"); ?>

  4. tudorbob
    Member
    Posted 9 years ago #

    Thanks that works great. Also figured out another way but I like yours better as it is cleaner. The way I had done it was this.
    <?php the_content('read more of ' . get_the_title() . ''); ?>

  5. tudorbob
    Member
    Posted 9 years ago #

    great link nuclearmoose - was wondering where to find that kind of information.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.