[wp-hackers] Inserting More Tags Across Entire Database
viper at viper007bond.com
Sat Feb 14 14:38:33 GMT 2009
Er, http://codex.wordpress.org/Template_Tags/the_excerpt ?
If you don't want it to be the default 55 words or want to tweak it in
another way, you can remove the default automatic excerpt making filter and
register your own. Inserting <!--more--> is not the best solution.
On Fri, Feb 13, 2009 at 9:33 PM, Dan Fellars <danf at eliresearch.com> wrote:
> I'm migrating a decent size database (50k+) of articles over to wp and I
> want them all to have a <!-- more --> tag inserted after a specified X
> number of characters. Obviously would prefer not doing it manually.
> Any ideas on how to approach it, or any code lying around that does it?
> The tricky part is handling the html so that I don't insert the more tag
> in the middle of an html tag.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/
More information about the wp-hackers