WordPress.org

Ready to get started?Download WordPress

Forums

More on < !--more-- > (20 posts)

  1. tiiana
    Member
    Posted 10 years ago #

    There is a hack in b2 (created by DoDo) where you can have multiple < !--more-- > in a post. You just end whatever you are posting with < !--endmore-- >. I was just wondering if that was going to be brought over to WP. I tried to recreate that here but the codes in the b2template.functions.php doesn't match entirely.

  2. Dougal Campbell
    Member
    Posted 10 years ago #

    For multi-page posts, you just separate each page with a <!--nextpage--> tag. This is discussed in the readme.html in the description of the the_content() function.

  3. scooter
    Member
    Posted 10 years ago #

    I don't really get the point of that sort of feature. Why would you need more then one <!--more--> tag?

  4. Alex King
    Member
    Posted 10 years ago #

    I think the point is to hide a section of a post in the middle instead of just cutting off the end. Is that right?

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    Anyone? I would actually like to this aswell.

  6. sotto
    Member
    Posted 10 years ago #

    This would be a wonderfull option indeed...
    This way i could insert different textfiles (like, sourcecode) in my blog ...
    but i'd also need a description for the --more-- part ... something like here has been done to the --nextpage--
    an example of my blog-entry would be like this
    blah blah here is --more:file1--
    here is the content of my first file
    --endmore-- and here is --more:file2--
    here is file2
    --endmore--
    blah blah some more crap
    Anybody who could make this or give me hints on how to start? (i'm completely new to wp ... haven't looked@the sourcefiles yet)

  7. sotto
    Member
    Posted 10 years ago #

    Hmm maybe this isn't a good idea after all ... what about viewing the blog with an rss-client?
    How would users see the post with that?
    any comments of hard-core bloggers?

  8. Eva
    Member
    Posted 10 years ago #

    I use the regular more tag once in a while, and I seem to recall that the hidden text shows up in rss feeds, but now I can't find any example. It makes sense because the feed would just strip the tag and read on, I think?

  9. davidchait
    Member
    Posted 10 years ago #

    This could likely be brought over, but I'd definitely chime into the 'what do people really need to use that for' camp. If there are more examples, I'd like to hear of uses for cool new tagging stuff. ;)
    =d

  10. tcervo
    Member
    Posted 10 years ago #

    The way the cut tag is used on LiveJournal, I don't believe would be relevant here. (At least I can't think of a reason to use it.) On LJ, you can add other LJ-ers to your "friends" list, then on your Friends page, you see recent posts from all of the people in your friends list. Some people use the cut tag to hide large blocks of content (large images, whatever) so they don't monopolize other people's friends pages. I have no idea if what I just said makes any sense, unless you see it in action...Sorry!
    -Tony

  11. davidchait
    Member
    Posted 10 years ago #

    Yeah, sort of. But that is only useful in the case that you are basically aggregating content. Frankly, I'd think you'd want to use an RSS aggregator to grab someone else's content in 'cleaner' structure, and let their RSS filtering do the job of reducing down the content size.
    Basically, it's a tag so that someone else grabbing your blog doesn't get certain things... which means that you have to spend the time tagging what things they shouldn't get. Would seem easier to add an optional param for the RSS feeds for what types of things should be auto-dropped by WP in building the feed, so you don't have to remember (or forget!) to do it yourself. ;)
    =d

  12. IcEr5K
    Member
    Posted 10 years ago #

    tcervo's post on how LJ users use the cut code to not monopolize their friends page has given me an idea. I would love to have the <!--endmore--> feature implemented on my blog, just to use it so image posting will not monopolize my frontpage or the permalink of the post either. How clicking on some text would make the images appear in the margin that the <!--more--> tag and the <!--endmore--> tag has created is simply perfect for image posting when you are too lazy to make thumbnails and have a server that cannot make thumbnails on the fly.
    Great idea. If I knew how to code PHP, I would get to work on this immediately.

  13. pvicnan
    Member
    Posted 9 years ago #

    Hmm.. perhaps i've been living under a rock all this while.. but is this possible yet? I'd like to implement this, so as to prevent my index page from being to clogged up images, and such. Thank you! ^.^

  14. Cine
    Member
    Posted 9 years ago #

    I'd really like this too, and I don't really care much if the RSS feeds messes up for that post because of it.

  15. Anonymous
    Unregistered
    Posted 9 years ago #

    If people say they want a feature we should probably take their word for it, and not say 'you can't want that, it's pointless', or 'lj-cut cats are only useful in the context of friends pages.' That is not the case at all. You may be in the habit of using the <!--more--> tag in all your posts, and the ability to display more than one extract would be useful for posts on more than one subject. (You may insist that posts should only cover one subject. I say that is a decision for the individual blogger.) Additionally it would be useful to be able to define the 'more' text on an entry-by-entry basis, to give the reader some idea of what is coming next.

  16. Anonymous
    Unregistered
    Posted 9 years ago #

    If people say they want a feature we should probably take their word for it, and not say 'you can't want that, it's pointless', or 'lj-cut cats are only useful in the context of friends pages.' That is not the case at all. You may be in the habit of using the <!--more--> tag in all your posts, and the ability to display more than one extract would be useful for posts on more than one subject. (You may insist that posts should only cover one subject. I say that is a decision for the individual blogger.) Additionally it would be useful to be able to define the 'more' text on an entry-by-entry basis, to give the reader some idea of what is coming next.

  17. Anonymous
    Unregistered
    Posted 9 years ago #

    double post. oops.

  18. Anonymous
    Unregistered
    Posted 9 years ago #

    OK, plugin written:
    http://www.ryanmeyers.com/?page=/wordpress/index.php?p=28
    Source code here:
    http://www.ryanmeyers.com/wordpress/wp-content/plugins/cutter.php.txt
    It should work exactly as the lj-cut tag is described here:
    http://www.livejournal.com/support/faqbrowse.bml?faqid=75
    Place "cut" text between [CUT] and [/CUT] tags.
    Feel free to snag my CD if you're just dying to show your love & support.
    Blessings
    Ryan

  19. lawtai
    Member
    Posted 9 years ago #

    hmm, is there any reason why it's not letting me go back into a previous message and adding the cut tags? it doesn't seem to want to work if I start with text, then try to cut somethign.

  20. pvicnan
    Member
    Posted 9 years ago #

    Hmm.. I tried out the plug-in; it does work great! Thanks! However, I had wondered if it were possible to have the 'cut' revealed in the same page; I was satisfied here! Anyone interested can check that out; Ryan's solution is very neat, and tidy though! ^.^

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.