WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Cant view my site's homepage without logging in

[Resolved] Cant view my site's homepage without logging in

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

    @noemermidagmailcom

    What is your theme name?

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

    Code Metic

    @noemermidagmailcom

    Can i post your index.php file script?

    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.]

    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(); ?>

    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 ‘[Resolved] Cant view my site's homepage without logging in’ is closed to new replies.
Skip to toolbar