WordPress.org

Forums

WordPress SEO by Yoast
Page doesn't load content (1 post)

  1. mvanboordt
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic