• Resolved Anam

    (@laamashdotcom)


    Hello,

    I deleted something from plugins. Now my blog post aren’t showing. site link https://seen2help.co.uk/finding-outsourcers-the-essential-questions/

    I have pasted full code from single.php. Please can someone have any answer for this?

    Regards,

    <?php
    /**
     * The Template for displaying all single posts.
     *
     * @package WordPress
     * @subpackage Twenty_Eleven
     * @since Twenty Eleven 1.0
     */
    
    get_header(); ?>
    
    		<div id="primary">
    			<div id="content" role="main" class="homepage">
    
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<nav id="nav-single">
    						<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
    						<span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">←</span> Previous', 'twentyeleven' ) ); ?></span>
    						<span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></span>
    					</nav><!-- #nav-single -->
    
    					<?php get_template_part( 'content-single', get_post_format() ); ?>
    
    					<?php comments_template( '', true ); ?>
    
    				<?php endwhile; // end of the loop. ?>
    
    			</div><!-- #content -->
                 <div class="home-sidebar">
    
                <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ):  ?>
                <?php endif; ?>
                </div>
                <div style="clear:both;" ></div>
    		</div><!-- #primary -->
    
    <?php get_footer(); ?>

Viewing 13 replies - 1 through 13 (of 13 total)
  • I deleted something from plugins.

    How does that change your theme files? If you need a new copy of the theme file, download the theme here:

    https://www.ads-software.com/themes/twentyeleven

    Thread Starter Anam

    (@laamashdotcom)

    Thanks for your reply. What you wrote isn’t my answer. I created a template for all the blog post to be on place. My blog page is showing all the blogs. Then when you click on the title, then the single post isn’t showing any text.

    Regards,

    What you wrote isn’t my answer.

    I’m sorry, I guess I don’t understand what you are asking. Can you explain further?

    Thread Starter Anam

    (@laamashdotcom)

    Hello thanks for your post.
    My blog post aren’t showing full text rather it is just showing only title.

    Have you replaced the file you changed?

    Hi laamashdotcom

    What plugin did you delete?
    Also if the problem is with single posts then the display also uses the file content-single.php, the problem might be in the, perhaps the deleting of plugin has nothing to do with the issue.

    Hope this helps..

    Thread Starter Anam

    (@laamashdotcom)

    Hello,

    Please ignore my plugin issue. Here is my page: https://seen2help.co.uk/blog/
    Where all of my blogs are showing. Now if I click either on continue reading or on the bold title, it takes me to the post. But on their I only see title not full post.

    Do you have any suggestions on this please?

    Regards,

    Thread Starter Anam

    (@laamashdotcom)

    Moderator keesiemeijer

    (@keesiemeijer)

    In your child theme’s stylesheet style.css you have this:

    .entry-content {
        display: none;
    }

    This will hide the content.
    Remove it from your child theme’s stylesheet.

    Thread Starter Anam

    (@laamashdotcom)

    Thanks Keesiemeijer.

    Now the title is showing at the top and doesn’t stand out on https://seen2help.co.uk/blog/. also there is another title under. How do I bring bottom one to the top.

    Here are the code for blog post:

    <?php
    /*
    Template Name: blog
    */
    ?>

    <?php get_header(); ?>

    <?php $wp_query = null; $wp_query = $temp;?>
    <div id=”primary”>
    <div id=”content” role=”main”>

    <?php
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query->query(‘posts_per_page=10′.’&paged=’.$paged);
    while ($wp_query->have_posts()) : $wp_query->the_post();
    ?>

    <div class=”entry-summary”>
    <b><h1><?php the_title(); ?></h1></b>
    <?php the_content(); ?>
    </div><!– .entry-summary –>

    <?php get_template_part( ‘content’, get_post_format() ); ?>

    <?php endwhile; ?>

    <?php twentyeleven_content_nav( ‘nav-below’ ); ?>

    <article id=”post-0″ class=”post no-results not-found”>
    <header class=”entry-header”>
    <!–<h1 class=”entry-title”><?php _e( ‘Nothing Found’, ‘twentyeleven’ ); ?></h1>–>
    </header><!– .entry-header –>

    <!–
    <div class=”entry-content”>
    <p><?php _e( ‘Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.’, ‘twentyeleven’ ); ?></p>
    <?php get_search_form(); ?>

    –>

    </div><!– .entry-content –>
    </article><!– #post-0

    <?php $wp_query = null; $wp_query = $temp;?>

    </div><!– #content –>
    </div><!– #primary –>

    <?php get_footer(); ?>

    Moderator keesiemeijer

    (@keesiemeijer)

    You are using <?php the_content(); ?> and <?php get_template_part( 'content', get_post_format() ); ?>
    They both will show your post content.

    Try removing <?php the_content(); ?> and see if that helps.

    Thread Starter Anam

    (@laamashdotcom)

    Great stuff! Thank you so much for your help. It is working now. Take care.

    Moderator keesiemeijer

    (@keesiemeijer)

    You’re welcome. I’m glad you’ve got it resolved ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Blog post Title showing but text or images aren't showing’ is closed to new replies.