The whole Post


Thanks for visiting! If you're new here, you may want to subscribe to my RSS feed. This blog posts regular information about web development, unix/linux, How-tos and patches. Go ahead, subscribe to my feed! You can also receive updates via email, instant messenger, skype or tweeter.

When using the <!--more--> tag to split your posts wordpress will generate a link that will take to a bookmark in the full post text.

I wanted the link to take the user to the top of the page so that the user will also see the page's header.

There is an entry on wordpress.org faq about this named "How can I customize the “more” tag?" that suggests a modification to: wp-includes/template-functions-post.php or wp-includes/post-template.php for wp 2.1 . The modification is fairly easy to do and it's about removing the "#more-id"  anchor from the link but I don't want to do this because this means I'll have to remember to do it every time I upgrade wp.

My solution was to implement this as a plugin. Basically my plugin just removes the anchor from the link that takes you to the post page. This is slower then the modification suggested on wordpress.org but it's more convenient to me.

Download: The Whole Post Plugin

  • Digg
  • Reddit
  • del.icio.us
  • Slashdot
  • Spurl
  • StumbleUpon
  • Furl
  • description
  • Netscape
  • NewsVine
  • Technorati
  • YahooMyWeb
  • Simpy
If you enjoyed this post, you should subscribe to my full RSS Feeds

close Reblog this comment
blog comments powered by Disqus

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License

Technology Blogs - Blog Top Sites Search For Blogs, Submit Blogs, The Ultimate Blog Directory Blogarama - The Blog Directory 5starsblog Computers Blogs - Blog Flare blog search directory gob BlogHop