After Word Press Update (Latest) the Content does not appear ? how to Fix?
-
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?
https://www.dugunarabasi.com/araclarimiz/1937-cadillac-la-salle-limousine/
-
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(); ?>
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="https://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="https://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="https://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="https://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="https://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="https://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="https://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="https://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('https://tinyurl.com/api-create.php?url=' . urlencode(get_permalink())); ?> <a href="https://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(); ?>
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="https://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="https://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="https://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="https://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="https://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="https://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="https://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="https://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('https://tinyurl.com/api-create.php?url=' . urlencode(get_permalink())); ?> <a href="https://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(); ?>
worked out, what was the problem sir?
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
was missingthanks sir, you are the boss!
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(https://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.
- The topic ‘After Word Press Update (Latest) the Content does not appear ? how to Fix?’ is closed to new replies.