Support » Fixing WordPress » More link

  • Why is the “more” link included inside “the_content”? Because of the way this is implemented, I have extremely limited control of how it displays on my site.
    For instance, in my old MT site, the link was surrounded by “div” tags that I was using to style the link. In addition, I prefer my “more” links to be unique to each post, like so:
    Continue Reading “Post Title”
    It’s not a good coding practice (imo) to have several identically worded links on a page that take the user to different locations. For instance, all “home” links should take the user to the home page. If a “home” link took the user somewhere else, they would be confused. If there are twenty “more” links on my page, they should all go to the same place. Placing the title of the entry within the “more” link text keeps them distinguishable.
    I’ve tried using “the_title” to place the title text within my more link, like so:
    ?php the_content(‘Continue Reading “‘ . the_title() . ‘”‘) ?
    The title ends up at the top of my post text, rather than in the link where it should be. Am I doing this wrong? Is this not allowed? Is there a way I can accomplish this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • http://wiki.wordpress.org/the_content
    this gives you some option to edit the more link

    Thread Starter JoeyDay

    (@joeyday)

    Heh… Yeah, I’ve seen that. Did you even read my post? I’m already trying to pass it the parameter. There’s really not much more information on that page.

    Thread Starter JoeyDay

    (@joeyday)

    Thanks! It works.
    Why is “get_the_title()” not found anywhere on the wiki? I would add it myself, but at the moment I know absolutely nothing about it. Is it returning the title without any formatting? What distinguishes “get_the_title()” from “the_title()”?
    Now back to my first question. Because the more link is part of “the_content()”, I can’t figure out how to customize what sits around it. I’d like it to be encased in “div” tags rather than “p” tags, or I would at least like to give the “p” tag a special class. Is this possible in the current implementation, or do I have to hack WordPress?
    Sorry if I’ve sounded a bit snarky in this thread. I’m feeling extremely discombobulated right now. MT and WP are worlds apart. I’m already certain that WP is better, but there are still a handful of hurdles I’m really having a hard time getting over.
    Your help is appreciated immensely.

    Thread Starter JoeyDay

    (@joeyday)

    Oh, and you’re absolutely right. My users aren’t stupid. They probably know where a “more” link will take them.
    I’m really only worried about special cases. The University of Massachusetts Boston has a web accessibility and usability guide in which are listed a few of the special cases.
    I’m trying to find something more authoritative, but it’s late and my brain is fried. I know I’ve seen similar statements in places like WaSP or the NYPL online styleguide.

    You can certainly add the wrapping div to the output in the get_the_content function in template-functions-post.

    Thread Starter JoeyDay

    (@joeyday)

    Beel, thanks for your comment on my website. It’s not that I decided against your suggestion. I just haven’t been here since the last time I posted, so I hadn’t yet seen your idea.
    Sounds like it will work. I probably won’t get to it until Monday morning, but I’ll keep you posted.

    No

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘More link’ is closed to new replies.