WordPress.org

Ready to get started?Download WordPress

Forums

After Word Press Update (Latest) the Content does not appear ? how to Fix? (8 posts)

  1. blgnklc
    Member
    Posted 3 years ago #

    after updating my web site, the content does not appear but the comments appear. I disabled all the plugins but still no content appear. how can I see and solve the problem of My WordPress?

    http://www.dugunarabasi.com/araclarimiz/1937-cadillac-la-salle-limousine/

  2. MULTIDOTS
    Member
    Posted 3 years ago #

    Hi

    Chan you check the below code is exist in your single.php file or not (wp-content/themes/Your Theme/single.php)

    <?php wp_content(); ?>

  3. blgnklc
    Member
    Posted 3 years ago #

    yeah there is a code.

    look the single php code is below:

    <?php get_header();?> 
    
    <div id="floatswrap" class="smallftfl clearfix">
    
    	<div class="container clearfix">
    
    		<h1 class="entry-title"><?php the_title(); ?></h1>
    
    		<div id="main_col">
    
    				<div <?php post_class('single_post clearfix'); ?> id="post-<?php the_ID(); ?>">
    				<?php the_content();?>
    
    			</div><!-- single_post -->
    			<div id="social">
    				<ul id="socialtabs" class="clearfix">
    					<li class="showSubscribe" ><a href="#" rel="#subscribeoverlay"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/rss_48.jpg" alt="Takip Et"/><?php _e('Takip Et','smashingMultiMedia');?></a></li>
    					<li class="showShare" ><a href="#" rel="#shareoverlay"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/heart_48.jpg" alt="Paylaş"/><?php _e('Paylaş','smashingMultiMedia');?></a></li>
    				</ul>
    
    				<div id="subscribeoverlay" class="overlay">
    					<h2><?php _e('Stay Informed','smashingMultiMedia');?></h2>
    					<p><?php echo get_option('wps_subscribe_text'); ?></p>
    					<p class="ico clearfix subscribe_ico">
    						<a href="<?php echo get_option('wps_feedburner_rsslink'); ?>" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/rss.png" alt="Subscribe to the RSS feed"/></a>
    						<a href="<?php echo get_option('wps_feedburner_emaillink'); ?>" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/mail.png" alt="Sign up for Email alerts"/></a>
    						<a href="http://twitter.com/<?php echo get_option('wps_twitter'); ?>" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/twitterbird.png" alt="Follow on Twitter"/></a>
    					</p>
    				</div>
    
    				<div id="shareoverlay" class="overlay">
    					<h2><?php _e('Bookmark & Share','smashingMultiMedia');?></h2>
    					<p><?php echo get_option('wps_share_text'); ?></p>
    					<p class="ico clearfix share_ico">
    						<a href="http://delicious.com/save?url=<?php the_permalink() ?>&title=<?php the_title() ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/delicious.png" alt="del.icio.us"/><?php _e('del.icio.us','smashingMultiMedia'); ?></a>
    						<a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/digg.png" alt="Digg"/><?php _e('Digg','smashingMultiMedia'); ?></a>
    						<a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/facebook.png" alt="Facebook"/><?php _e('Facebook','smashingMultiMedia'); ?></a>
    						<a href="http://www.mixx.com/submit?page_url=<?php the_permalink() ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/mixx.png" alt="Mixx"/><?php _e('Mixx','smashingMultiMedia'); ?></a>
    						<a href="http://reddit.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/reddit.png" alt="Reddit"/><?php _e('Reddit','smashingMultiMedia'); ?></a>
    						<a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/stumbleupon.png" alt="Stumbleupon"/><?php _e('Stumbleupon','smashingMultiMedia'); ?></a>
    						<a href="http://technorati.com/ping/?url=<?php the_permalink() ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/technorati.png" alt="Technorati"/><?php _e('Technorati','smashingMultiMedia'); ?></a>
    						<?php $shortenedurl = file_get_contents('http://tinyurl.com/api-create.php?url=' . urlencode(get_permalink())); ?>
    						<a href="http://www.twitter.com/home?status=<?php echo str_replace(' ', '+', the_title_attribute('echo=0')); echo '+' . $shortenedurl; ?>" title="<?php _e('Twitter','smashingMultiMedia'); ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/twitter.png" alt="Twitter"/><?php _e('Twitter','smashingMultiMedia'); ?></a>
    					</p>
    				</div>
    			</div><!--social-->
    
    			<?php if ('open' == $post-> comment_status) { comments_template('', true); } ?>
    
    		</div><!-- main_col -->
    		<?php get_sidebar(); ?>
    	</div><!-- container -->
    </div><!-- floatswrap-->
    <?php get_footer(); ?>
  4. MULTIDOTS
    Member
    Posted 3 years ago #

    Please try the below code...

    <?php get_header();?> 
    
    <div id="floatswrap" class="smallftfl clearfix">
    
    	<div class="container clearfix">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<h1 class="entry-title"><?php the_title(); ?></h1>
    
    		<div id="main_col">
    
    			<div <?php post_class('single_post clearfix'); ?> id="post-<?php the_ID(); ?>">
    				<?php the_content();?>
    
    			</div><!-- single_post -->
    			<div id="social">
    				<ul id="socialtabs" class="clearfix">
    					<li class="showSubscribe" ><a href="#" rel="#subscribeoverlay"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/rss_48.jpg" alt="Takip Et"/><?php _e('Takip Et','smashingMultiMedia');?></a></li>
    					<li class="showShare" ><a href="#" rel="#shareoverlay"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/heart_48.jpg" alt="Paylaş"/><?php _e('Paylaş','smashingMultiMedia');?></a></li>
    				</ul>
    
    				<div id="subscribeoverlay" class="overlay">
    					<h2><?php _e('Stay Informed','smashingMultiMedia');?></h2>
    					<p><?php echo get_option('wps_subscribe_text'); ?></p>
    					<p class="ico clearfix subscribe_ico">
    						<a href="<?php echo get_option('wps_feedburner_rsslink'); ?>" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/rss.png" alt="Subscribe to the RSS feed"/></a>
    						<a href="<?php echo get_option('wps_feedburner_emaillink'); ?>" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/mail.png" alt="Sign up for Email alerts"/></a>
    						<a href="http://twitter.com/<?php echo get_option('wps_twitter'); ?>" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/twitterbird.png" alt="Follow on Twitter"/></a>
    					</p>
    				</div>
    
    				<div id="shareoverlay" class="overlay">
    					<h2><?php _e('Bookmark & Share','smashingMultiMedia');?></h2>
    					<p><?php echo get_option('wps_share_text'); ?></p>
    					<p class="ico clearfix share_ico">
    						<a href="http://delicious.com/save?url=<?php the_permalink() ?>&title=<?php the_title() ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/delicious.png" alt="del.icio.us"/><?php _e('del.icio.us','smashingMultiMedia'); ?></a>
    						<a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/digg.png" alt="Digg"/><?php _e('Digg','smashingMultiMedia'); ?></a>
    						<a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/facebook.png" alt="Facebook"/><?php _e('Facebook','smashingMultiMedia'); ?></a>
    						<a href="http://www.mixx.com/submit?page_url=<?php the_permalink() ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/mixx.png" alt="Mixx"/><?php _e('Mixx','smashingMultiMedia'); ?></a>
    						<a href="http://reddit.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/reddit.png" alt="Reddit"/><?php _e('Reddit','smashingMultiMedia'); ?></a>
    						<a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/stumbleupon.png" alt="Stumbleupon"/><?php _e('Stumbleupon','smashingMultiMedia'); ?></a>
    						<a href="http://technorati.com/ping/?url=<?php the_permalink() ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/technorati.png" alt="Technorati"/><?php _e('Technorati','smashingMultiMedia'); ?></a>
    						<?php $shortenedurl = file_get_contents('http://tinyurl.com/api-create.php?url=' . urlencode(get_permalink())); ?>
    						<a href="http://www.twitter.com/home?status=<?php echo str_replace(' ', '+', the_title_attribute('echo=0')); echo '+' . $shortenedurl; ?>" title="<?php _e('Twitter','smashingMultiMedia'); ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/<?php echo get_option('wps_child_theme'); ?>/images/socialIcons/twitter.png" alt="Twitter"/><?php _e('Twitter','smashingMultiMedia'); ?></a>
    					</p>
    				</div>
    			</div><!--social-->
    
    			<?php if ('open' == $post-> comment_status) { comments_template('', true); } ?>
    
    		</div><!-- main_col -->
    
    		<?php endwhile; endif; ?>
    
    		<?php get_sidebar(); ?>
    	</div><!-- container -->
    </div><!-- floatswrap-->
    <?php get_footer(); ?>
  5. blgnklc
    Member
    Posted 3 years ago #

    worked out, what was the problem sir?

  6. extatix
    Member
    Posted 3 years ago #

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    was missing

  7. blgnklc
    Member
    Posted 3 years ago #

    thanks sir, you are the boss!

  8. whyspr
    Member
    Posted 2 years ago #

    Wow, with a response like that. I can't help but bring two of my recent problems to the forums. I'm also a newbie to wordpress, web design, plugins, html. Lol. Yup, that kind of newbie. But, ill see if someone can explain to me. I'm not completely dumb, and know how to find/copy the files. I understand the basics of html. Yes, i babble...

    I'm getting two errors that read as:

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /homepages/9/d364376157/htdocs/wordpress/wp-content/themes/fun_electronic_gadgets_tee069/functions.php on line 791

    Warning: file_get_contents(http://www.leadcamp.com/updates/) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /homepages/9/d364376157/htdocs/wordpress/wp-content/themes/fun_electronic_gadgets_tee069/functions.php on line 791

    I get these 2 errors whenever i try to go to the theme editor on wp. I've copied the function as the file is 1300+ lines long, i hope i cut the right part(s). I copied lines 787- 809. I'm thinking this means that the url is down or broken or whatever. Or can this be fixed?

    This is the /functions.php file area I "THINK" you need to help me.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    My second error is simpler to fix, I'm hoping.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags