Viewing 6 replies - 1 through 6 (of 6 total)
  • Code Metic

    (@noemermidagmailcom)

    What is your theme name?

    Thread Starter anant.nigam

    (@anantnigam)

    Theme name is ‘SimplePv’. I made this theme.

    Code Metic

    (@noemermidagmailcom)

    Can i post your index.php file script?

    Thread Starter anant.nigam

    (@anantnigam)

    index.php file content:

    <?php get_header(); ?>
    	<section>
    	    	<?php if (have_posts()) : ?>
            <?php while (have_posts()) : the_post() ; ?>
        		<h1><?php the_title() ?></h1>
    				<?php the_content('') ?>
                    <?php endwhile; ?>
                    <?php endif; ?>
    	</section>
    </div>
    <?php get_footer(); ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]

    Thread Starter anant.nigam

    (@anantnigam)

    index.php file content:

    <?php get_header(); ?>
    	<section>
    
    		    	<?php if (have_posts()) : ?>
            <?php while (have_posts()) : the_post() ; ?>
        		<h1><?php the_title() ?></h1>
    				<?php the_content('') ?>
                    <?php endwhile; ?>
                    <?php endif; ?>
    	</section>
    
    </div>
    <?php get_footer(); ?>
    Thread Starter anant.nigam

    (@anantnigam)

    ok, got the problem. i had my home set to a static page and that page was marked as a draft, so it was not fetching it directly.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cant view my site's homepage without logging in’ is closed to new replies.