I can't figure out a way to use the More... functionality in syndication. I'm trying something in my wp-atom.php like:
<content type="<?php bloginfo('html_type'); ?>" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('Read the rest on DW...'); ?>]]></content>
and it doesn't seem to work. Any ideas? I'd love to show full content minus text after the <!--more--> tag, if possible. --Derek 04:51, 7 Jun 2005 (UTC)
Does anyone know what "he" said when he looked at the author with shock on his face? :) --Jonathan Drain 16:15, 22 Nov 2005 (GMT)
"By default, when you click on the Read More link, the web page loads and then "jumps" to the spot where the <--more--> tag is set in the post. If you do not want that "jump", you can change the default function of how this works by editing the following line in wp-includes/template-functions-post.php"
This explanation makes sense. But the three code examples that follow, to one new to PHP and WordPress like me, don't make sense. While the format of the code snippets is clear, I have no idea what they do or why one would want to do this. Perhaps if some knowledgable soul could insert some links to where one can learn about these different formatting options?
The $more_file has been deprecated.
For example, this:
<?php the_content( $more_link_text , $strip_teaser, $more_file ); ?>
...should be changed to this:
<?php the_content( $more_link_text , $strip_teaser ); ?>
Run this query in mysql DB, It takes one quarter of post content, after that, it gets the first ocurence on new line character (\n) in the second quarter.
update wp_posts set post_content = insert(post_content, locate('\n', post_content, CHARACTER_LENGTH(post_content)/4), 0, '\n\n');