Forums

questions about the <!--more--> tag? (8 posts)

  1. josiahrock
    Member
    Posted 3 years ago #

    is the <!--more--> tag supposed to create a link to the single post page?
    because right now when i use the tag i have to add a link manualy, and when readers go to the post page the read more link that i created is still there.

    can anyone help?

  2. moshu
    Member
    Posted 3 years ago #

    The tag is supposed to automatically create a link (by default "more...") that should take the reader to the single post view.
    Can you show us an example for what you described?

  3. josiahrock
    Member
    Posted 3 years ago #

    check out http://www.drummerspocket.siahart.com. the most recent post i used the more tag. it did cut the page but did not leave a link so i had to creat a link of my own.
    and if you go to the post page my link is still there

  4. josiahrock
    Member
    Posted 3 years ago #

    on the Oct 30 post on the front page I took out the read more link I created to show that the more tag is in place but is not creating a link to the next page

  5. moshu
    Member
    Posted 3 years ago #

    Actually, if you look at the source code of your main page, the link created by the more tag is THERE:
    <a href="http://www.drummerspocket.siahart.com/index.php/2006/11/01/new-may-acoustic-eq-snare-drum/#more-14"></a>
    it's just "empty"... (=no word in between the anchor tags)

    Can you paste the code of your index.php to http://wordpress.pastebin.ca and post back with the uri?

  6. josiahrock
    Member
    Posted 3 years ago #

    here you go http://wordpress.pastebin.ca/235153

    I tried the more tag on another blog of mine and it works fine so i thik it has to do with the blog theme that i am using.

  7. Kafkaesqui
    Moderator
    Posted 3 years ago #

    Change:

    <?php the_content(''); ?>

    to:

    <?php the_content(); ?>

    Or if you want your own link text, to something like:

    <?php the_content('Keep reading this article...'); ?>

  8. josiahrock
    Member
    Posted 3 years ago #

    awsome! thanks a lot

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags