WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Why Aren't Blog Post Titles Showing Up? (6 posts)

  1. agfreesafety
    Member
    Posted 1 year ago #

    The blog post titles aren't showing up on this site for some reason, and I'm having a tough time figuring out why.

    I saw this thread on a similar issue, however I couldn't find an answer, unless I overlooked it.

    In that post, the person with the issue was asked to post their index.php, so below is what mine looks like, in case that helps in some way:

    <?php
    /**
     * The main template file.
     *
     * @package WPLOOK
     * @subpackage BlogoLife
     * @since BlogoLife 1.0
    */
    get_header();
    get_template_part('inc', 'indexloop' ) ;
    get_sidebar();
    get_footer(); ?>
  2. Tammie
    Member
    Posted 1 year ago #

    In your folder _inc is there a file called indexloop? If so does that file have the_title in it?

    https://codex.wordpress.org/Function_Reference/the_title

  3. agfreesafety
    Member
    Posted 1 year ago #

    What exactly is folder_inc? I Googled that and didn't come up with anything. Where is it?

    Thanks

  4. agfreesafety
    Member
    Posted 1 year ago #

    Could the issue be one of the plugins I have installed, perhaps?

    In this thread, esmi said that their <div id="featured"> is being hidden in the single post php files, however I don't think that's the case in this issue.

    Here's what my single.php looks like:

    <?php
    /**
     * The single template file.
     * @package WPLOOK
     * @subpackage BlogoLife
     * @since BlogoLife 1.0
    */
    
    get_header();
    	$hasSidebar = "";
    	$sidebar =    get_post_meta($post->ID,'wpl_enable_sidebar',true);
    get_template_part('content', 'single' ) ;
    	if($sidebar=="false" ) {
    		echo '<div class="clear"></div>';
    	} else {
    		get_sidebar();
    	}
    get_footer(); ?>
  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    It looks like your CSS code is "hiding" the titles -- see line 1074 of style.css to find this:

    .entry-header {
        display: none;
    }

    Remove that and the titles should show up again.

  6. agfreesafety
    Member
    Posted 1 year ago #

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.