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?
- The topic ‘More link’ is closed to new replies.