Content Not Displaying
-
I noticed for several posts (starting with today’s post) – the body content was not displaying, only the title.
Now, the problem seems to have grown to include all of our posts. Only the titles are displayed and the HTML pages never fully load – regardless of what browser you are using (IE, Firefox, or Safari).
This is my site
https://www.cohortpromotions.com
-
Hi,
Did you make any changes to your theme’s single.php file?
If you open the file, can you find the following code?
<?php the_content(); ?>
If yes, please copy the code and post it here, so I can review..
Cheers
WouterNo I have not made any changes what so ever. This started starting occurring after i after i installed a simple soundcloud plugin and then I deactivated it in less than 10 minutes. But I never once made any changes to my plugin’s single.php file/ I dont even know where I can find this coding.
This is my content.php file
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php global $wind_options; if ( has_post_format( 'image' ) ) echo wind_get_image(); elseif ( has_post_format( 'video' ) ) echo wind_get_video(); else wind_post_thumbnail( $post->ID ); ?> <header class="entry-header"> <?php wind_post_title(); passion_meta_top(); ?> </header> <div class="entry-content clearfix"> <?php if ( is_single() && has_excerpt() ) { ?> <div class="entry-excerpt clearfix"> <?php the_excerpt(); ?> </div> <?php } if ( has_post_format( 'image' ) ) add_filter('the_content', 'wind_remove_images'); elseif ( has_post_format( 'video' ) ) add_filter('the_content', 'wind_remove_videos'); the_content( '' ); if ( has_post_format( 'image' ) ) remove_filter('the_content', 'wind_remove_images'); elseif ( has_post_format( 'video' ) ) remove_filter('the_content', 'wind_remove_videos'); wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'passion' ) . '</span>', 'after' => '</div>' ) ); ?> </div> <footer class="entry-footer clearfix"> <?php passion_meta_bottom(); wind_post_edit(); wind_author_info(); ?> </footer> </article>
This is my content-non.php
<article id=”post-0″ class=”post hentry no-results not-found”>
<header class=”entry-header”>
<h1 class=”entry-title”><?php _e( ‘Nothing Found’, ‘passion’ ); ?></h1>
</header><div class=”entry-content”>
<?php if ( is_home() ) { ?>
<p><?php printf( __( ‘Ready to publish your first post? Get started here.’, ‘passion’ ), admin_url( ‘post-new.php’ ) ); ?></p>
<?php } else { ?>
<?php if ( is_search() ) { ?>
<p><?php _e( ‘Sorry, but nothing matched your search terms. Please try again with some different keywords.’, ‘passion’ ); ?></p>
<?php } else { ?>
<p><?php _e( ‘It seems we can’t find what you’re looking for. Perhaps searching can help.’, ‘passion’ ); ?></p>
<?php } ?>
<?php get_search_form(); ?>
<?php } ?>
</div>
</article>This is my content-page.php file
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<?php
if ( ” != get_the_title() ) { ?>
<header class=”entry-header clearfix”>
<h1 class=”entry-title”><?php the_title(); ?></h1>
</header>
<?php
}
?>
<div class=”entry-content clearfix”>
<?php
the_content();
wp_link_pages( array( ‘before’ => ‘<div class=”page-link”><span>’ . __( ‘Pages:’, ‘passion’ ) . ‘</span>’, ‘after’ => ‘</div>’ ) ); ?>
</div>
<?php wind_post_edit(); ?>
</article>This is my content-loop.php file. this last the file for my contents. please help fix any of them if they are messed up.
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<?php
global $wind_options;if ( is_sticky() || wind_is_featured() || ( ! has_post_thumbnail() && ! wind_get_image() && ! wind_get_video() ) ) {
if ( has_post_format( ‘image’ ) )
echo wind_get_image();
elseif ( has_post_format( ‘video’ ) )
echo wind_get_video();
elseif ( has_post_thumbnail() )
wind_post_thumbnail( $post->ID, ‘featured-image’ ); ?>
<header class=”entry-header”>
<?php wind_post_title();
passion_meta_top(); ?>
</header>
<?php if ( is_sticky() || wind_is_featured() || has_post_format( ‘aside’ ) || has_post_format( ‘link’ ) || has_post_format( ‘quote’ ) ){ ?>
<div class=”entry-content clearfix”>
<?php if ( has_post_format( ‘image’ ) )
add_filter(‘the_content’, ‘wind_remove_images’);
elseif ( has_post_format( ‘video’ ) )
add_filter(‘the_content’, ‘wind_remove_videos’);
the_content( wind_readmore_link() );
if ( has_post_format( ‘image’ ) )
remove_filter(‘the_content’, ‘wind_remove_images’);
elseif ( has_post_format( ‘video’ ) )
remove_filter(‘the_content’, ‘wind_remove_videos’);
?>
</div>
<?php
} else { ?>
<div class=”entry-summary clearfix”>
<?php the_excerpt(); ?>
</div>
<?php }
} else { ?>
<div class=”row collapse”>
<div class=”medium-4 small-4 columns”>
<?php
if ( has_post_format( ‘image’ ) )
echo wind_get_image();
elseif ( has_post_format( ‘video’ ) )
echo wind_get_video();
elseif ( has_post_thumbnail() )
wind_post_thumbnail( $post->ID, ‘featured-thumb’, ‘wind-thumb’ );
?>
</div>
<div class=”medium-8 small-8 columns entry-intro”>
<header class=”entry-header”>
<?php wind_post_title();
passion_meta_top(); ?>
</header>
<div class=”entry-summary hide-for-small”>
<?php the_excerpt();?>
</div>
</div>
</div>
<?php
}
wind_single_post_link();
wind_post_edit(); ?>
<footer class=”entry-footer clearfix”>
<?php
wp_link_pages( array( ‘before’ => ‘<div class=”page-link”><span>’ . __( ‘Pages:’, ‘passion’ ) . ‘</span>’, ‘after’ => ‘</div>’ ) );
passion_meta_bottom();
?>
</footer>
</article>
- The topic ‘Content Not Displaying’ is closed to new replies.