WordPress.org

Ready to get started?Download WordPress

Forums

The (more...) -tag (25 posts)

  1. Viidar
    Member
    Posted 10 years ago #

    Hi!
    Where do I change the look of the (more...)-tag? I want to change the language on that tag.. :)

  2. Viidar
    Member
    Posted 10 years ago #

    Yes, that's it! :)
    I also found something in class-smarty.php but that was not what I was looking for..:)
    Thanks again! This forum just rox! :D

  3. MathiasBynens
    Member
    Posted 10 years ago #

    You're welcome :)

  4. chuckg
    Member
    Posted 10 years ago #

    I also wrote a hack a while back (ohh, it rhymes) that allows you have word and image counts appended to the end of your more text. You can find directions (and examples) of it here: http://www.blindmuse.com/archive/2004/02/26/add-wordimage-counts-to-wp/

  5. laurendw
    Member
    Posted 10 years ago #

    How do I change the (more...) to be the title of the blog entry it's pointing to? I tried fiddling with the
    <?php the_content() ?>
    but couldn't get it to work - has anyone else got this to work?

  6. carthik
    Member
    Posted 10 years ago #

    what about trying <?php the_content(<?php permalink_single() ?>) ?>
    Give it a shot :)

  7. pogi
    Member
    Posted 10 years ago #

    Try this out. ^_^
    <?php the_content( "<?php the_title() ?>" ) ?>

  8. Beel
    Member
    Posted 10 years ago #

    I don't know, maybe it is just me and my wacky way of thinking, but it reminds me of that darn chicken and egg thing. Wouldn't you need the contents before you could get the title? I just don't see how the above two efforts would work. But, hey, give it a shot.

  9. laurendw
    Member
    Posted 10 years ago #

    Neither of the suggestions worked, unfortunately. I got nothing at all where the (more...) had been before.
    Beel, the title is already known at that stage; if you look in index.php you can see that the the_title() function is used a couple of times before the the_content() function is called.
    I'll try a few more things out and post if I come up with something.

  10. davidchait
    Member
    Posted 10 years ago #

    Hmmm... I'm not sure you want all the conversions the_title does. Also, the examples given probably don't work, don't even run... Just a guess.
    Change:
    <?php the_content(); ?>
    To:
    <?php the_content(get_the_title()); ?>
    ... and let me know if that does what you are looking for. Alternatively use: the_title('', '', false) as the parameter.
    -d
    http://www.chait.net

  11. Beel
    Member
    Posted 10 years ago #

    Dang, you're good.

  12. laurendw
    Member
    Posted 10 years ago #

    That was just what I was looking for. Thanks!

  13. davidchait
    Member
    Posted 10 years ago #

    No problem!
    -d

  14. bmc
    Member
    Posted 10 years ago #

    I'm sorry, I have the latest wp release, but I didn't found any "more_link_text='(more...)" in the template-functions file. Any help?

  15. Anonymous
    Unregistered
    Posted 10 years ago #

    this is more of a stupid question, but please bear with me as i am fairly new to WP.
    How can i get to show the "more" link? I would need this once i have made my WP a news site or some sort.
    Thank you in advance.

  16. TechGnome
    Moderator
    Posted 10 years ago #

    DANG it! The forums keep eating my posting....
    Add < ! - - More - - > (w/o all the spaces) to the post.
    TG

  17. Anonymous
    Unregistered
    Posted 10 years ago #

    i have already put < ! - - More - - > (w/o all the spaces) but it doesnt seem to cut my post. im using WP 1.2 why is that? could somebody help me asap? thanks

  18. Anonymous
    Unregistered
    Posted 10 years ago #

    got it.. it should be < ! - - more - - > and not < ! - - More - - >
    thanks guys!

  19. Anonymous
    Unregistered
    Posted 9 years ago #

    is it possible to close the 'more' tag and have text shown after?? (do you know what i mean??)
    so when you first view the post, you see text both before and after the "more" tag.

  20. Beel
    Member
    Posted 9 years ago #

    Nope don't think so. My question would be why? Perhaps we can come up with something else.

  21. Something like the Hide or Cut Post Text plugin? Where text between <!--cut--> and <!--/cut--> aren't shown on the non-permalink pages (i.e. all pages except for the post's single page), and you get a link like the "(more..)" link instead of the cut text?

  22. Anonymous
    Unregistered
    Posted 9 years ago #

    How do I get the more-link to look like this?
    < p class="morelink" >Read this post< /p >
    Haven't found anywhere to add a class attribute to the surronding p-tag.

  23. Anonymous
    Unregistered
    Posted 9 years ago #

    I meant:

    <p class="morelink">Read this post

  24. Anonymous
    Unregistered
    Posted 9 years ago #

    okay, THIS is what I meant:
    < p class="morelink" >< a href="http://...">Read this post< /a > < / p >
    (without the spaces)

  25. bronto
    Member
    Posted 9 years ago #

    By the way, in the current version it's in wp-includes/template-functions-post.php not wp-includes/template-functions.php.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.