I am using the latest nightly build WordPress 3.0-beta2-14729 and the Theme TwentyTen. The content is not showing up where I indicated below. But when I go to the edit window, it is all there. Does anyone know what the problem is? The content in the edit box is ~400KB of text.
<div id="post-125" class="post-125 page type-page hentry">
<h1 class="entry-title">Post title</h1>
<div class="entry-content">
// There should be something here
<span class="edit-link"><a class="post-edit-link" href="http://abp.bhc.com/wp-books-beta/aig/wp-admin/post.php?post=125&action=edit" title="Edit Post">Edit</a></span> </div><!-- .entry-content -->
</div><!-- #post-125 -->
the php code is:
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'a开发者_高级运维fter' => '</div>' ) ); ?>
</div><!-- .entry-content -->
I had the same issue. Only the title was showing, but everything was fine and present when editing.
Everything was working before, so I was hoping it would be a plugin conflict. Which it was.
I had recently installed a few plugins to try for my new site. One of the plugins "Internet Marketing Plugin" was the culprit. Once I disabled it, the problem was solved.
So, I'd suggest disabling any likely plugin to test it, look for anything that adds itself to your TINYMCE Editor panel or inserts stuff into the page on the fly.
I'd say you're hitting the memory limit/backtrace limit of the Preg Regular expressions on your server.
wpautop and wptexturize can sometimes hit it with larger posts.
Have a look at phpinfo() for pcre.backtrack_limit & pcre.recursion_limit (Report back on their size?)
You may be able to add this to your wp-config.php file:
ini_set('pcre.backtrack_limit', '100000');
ini_set('pcre.recursion_limit', '100000');
And see if that helps? You could try upping the limits even further if it doesnt, just to test it. (Note: Those values are what my default install has set, No idea if they're high enough, too high, or what)
Cheers, Dion
There are some stories in the WP forums of post text limits in WP because of server and WP memory limits, where the post title shows but not the post content, but no clear solutions. Try a smaller post ~50k or ~100K and see what happens.
Try to simply increase overall memory for WP by using php_value memory_limit 64M
in .htaccess; or this near the top of your wp-config.php file: define('WP_MEMORY_LIMIT', '64M');
or this in your php.ini, if you have access to it: memory_limit = 64M;
Are you sure is not still a draft your content? Is it published? Or is it static? I'm not seeing any embedded php code that should be inside entry-content.
This issue occurred for me when I installed a duplicate of my main website to another directory to use as a dev environment. I didn't do a clean install so I'm thinking it caused some file conflicts.
I tried using a different theme and was able to see page content. So I deleted the theme I had problems with and reinstalled it.
<script type="text/javascript">
jQuery(function($) {
if (/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())) {
$('body').css('opacity', '1.0')
}
})
</script>
<style>
body {
-webkit-animation-delay: 0.1s;
-webkit-animation-name: fontfix;
-webkit-animation-duration: 0.1s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: linear;
}
@-webkit-keyframes fontfix {
from { opacity: 1; }
to { opacity: 1; }
}
</style>
add this two it works for sure, i http://www.webdizer.com/
精彩评论