WP plugin: More Unique
- plugin:
- More Unique
- version:
- R1.2
- download:
- more-unique.php
- source:
- more-unique.php
Forgive the misuse of an absolute in the name: More Unique is a simple WordPress plugin with a simple task: to let you customize, individualize, alterize (word?) the text of the ‘more’ link for each post through the use of custom fields.
If you’re not aware of the feature, in WordPress you can add a break to posts by inserting the <!--more--> quicktag in the content. When a post with this quicktag appears on your blog (anywhere other than on a single post/permalink page), a link encouraging one to read further appears and the remainder of the post—any text after <!--more--> in your post—is not displayed*.
To install the plugin download more-unique.php, then upload it to the wp-content/plugins/ directory in your WordPress installation and activate More Unique under Plugins. To use, add a new custom field to any post with a key of 'more' (without the quotes) and a value that will be your custom more link text. Then click Add Custom Field. To edit your ‘more’ link text change the value for it under Custom Fields and click Update. To remove it and return to the default ‘more’ link text, delete the custom field.
* The more quicktag works only in conjunction with the_content() template tag in your theme templates. You can read about the_content() and the more quicktag on the WordPress Codex:
http://codex.wordpress.org/Template_Tags/the_content
$default, will replace WordPress’ default ‘more’ link text (to change in your feeds, etc). Also, you can now use %title% (in both the ‘more’ custom field and the $default variable value) to auto-insert the post’s title in your ‘more’ link text.%nomore% (and nothing else) for your ‘more’ custom field value, this will remove the ‘more’ link for that post. Added tentative support for WordPress 2.1.
Author: Kaf Oseo
Categories: WordPress
Comments: (17) · Leave a comment · Comments RSS2
I was wondering if anybody had made a plugin like this. And guess what – you did ! Installed it right away, and it works great !
Thanks a lot for this great plugin :-)
Very nice plug-in. Is there any way to style the typography of the “more” parameter, i.e., to color it red? Thanks!
Hi, Kaf!
LTNS, buddy!
Just came across this plugin. Would just like to clarify something…would I have to add a custom field to EVERY post that I wish to use this plugin with? I like the idea of being able to literally customize the
<!--more-->tag to suit each post. If the plugin is deleted or not used in the future, how will this degrade? I assume that the default<!--more-->text will apply?[very very late reply]
Craig, yes you will need to add a ‘more’ custom field to any post you wish to customize the more link text for. And in the case of *not* setting a custom field for a post, or removing the plugin altogether, the default more text will display (or whatever you’ve set for the ‘more_link_text’ parameter to the_content() ).
How about using the more tag instead of a custom field?
Something like <
!--more|Custom link text-->What do you think?
I’ve changed my mind. Better use custom fields: “graceful degradation” principle…
BTW, sorry for the spam and thanks for your great work on WP!
More Unique prevents my visual editor from appearing in WP2.1. Any ideas?
Am I doing something wrong? I wrote my post, put in the more tag, then added the custom-field with the key ‘more’ and my own text in value. I saved … and I still get only the normal “More”. And I think it did work on previous occasions, but now it doesn’t work anymore at all.
I have the same problem, it doesn’t seem to work in WP 2.1 anymore?
Wonderful plugin! Thank you very much!
……But it works fine in wp2.0, not in 2.1 :( any news?
OK, I have fixed the problem for 2.1.
Replace
$more_unique = $post_meta_cache[$id]["$key"][0];
by
$more_unique = get_post_meta($id, $key, true);
in the plugin and it works again. WordPress 2.1 no longer supports $post_meta_cache, you have to use the new function get_post_meta instead.
Happy writing!
I also had it working in 2.1, but not in 2.2 :-(
No idea what the problem is… Anyone have it working in 2.2 maybe?
Does it work in 2.2? I was really looking for a plugin like this..
This looks like a great plugin! I’m getting ready to launch a new site soon and I’ll definitely have to give this a shot — on the new WordPress 2.3 platform.
Thanks!
God I have been looking for a plugin like this for ages!! Any chance you can make it work in wp 2.5? I’m trying to include an image in the more link but it’s not working :/ (the code I’m using: <?php the_content(‘Read more…’); ?>)
Please help!
Hi! You wrote a great plugin, but there is an error:
In $replace = ‘‘ . apply_filters(‘the_title’, str_replace(‘%title%’, $post->post_title, $more_text)) . ‘‘;
change \\1\\2 to \\1″\\2 !!!
Also, it’s better to change href=”(.* to href=”([^"]*
Any new on it? Or it stopped?