WordPress.org

Support

Support » Plugins and Hacks » Page doesn't load content

Page doesn't load content

  • Hi,

    I use the SEO plugin and it works great.
    For some reason I can’t find some of my pages are depending on the plugin. If I update the plugin or diable the plugin the pages don’t load their content.

    I can’t figure out why.
    Here are the facts:
    – Current version of plugin: 1.3.4.4
    – Update to: 1.4.7 (not done yet)
    – WP-version: 3.5.1
    – Permalinks set to PostName

    The content of the page contains a title, an image and some content.
    The image is set to the top of the page and holds a ceirtain style element.
    This is the code of the page. As far as I can see nothing special:

    <?php
    /*
    Template Name: Algemene pagina
    */
    ?>
    <?php get_header(); ?>
        <div id="content_algemeen">
    		<div class="content-img">
    		  <?php  preg_match_all("/(<img[^>]*>)",get_the_content(),$matches,PREG_PATTERN_ORDER);
    		  for( $i=0; isset($matches[1]) && $i < count($matches[1]); $i++ ) {
    			echo $matches[1][$i];}?>
    		</div>
    		<div class="content-text">
    		<h2><?php the_title();?></h2>
    		  <?php
    		  ob_start();
    		  the_content('',true);
    		  $postOutput = preg_replace('/<img[^>]+./','', ob_get_contents());
    		  ob_end_clean();
    		  echo $postOutput;
    		  ?>
    		</div>
        </div>
    <?php get_footer(); ?>

    Hope somebody has an idea.

    http://wordpress.org/extend/plugins/wordpress-seo/

  • The topic ‘Page doesn't load content’ is closed to new replies.