• Hi everyone,

    I can not see my posts.

    I made a wordpress theme and installed it well. I made other templates that would work for different support pages of my website (https://www.co119.net/libertycommittee.com/). The templates work well when applied to different pages but my posts do not show on the page/template I defined for blogs in wordpress settings. The page works but no post is shown and I see no error.

    I added a post and made a blank posts page. But nothing shows.

    Here is the blog page:

    https://www.co119.net/libertycommittee.com/?page_id=31

    Please advise.

    I ensured that I use index.php for the posts page. And for the rest of the pages, I used different templates.

    Thanks,

    Ronald

Viewing 10 replies - 1 through 10 (of 10 total)
  • Did you include the loop in your index.php? I copied it in its simplest form below:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <?php endwhile; else: ?>
    <p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p>
    <?php endif; ?>

    Thread Starter Kyamagero

    (@kyamagero)

    micahcooksey, your help is greatly appreciated.

    This is how my code looks like:

    <div id=”content” class=”narrowcolumn” role=”main”>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
    <small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small>

    <div class=”entry”>
    <?php the_content(‘Read the rest of this entry »’); ?>
    </div>

    <p class=”postmetadata”><?php the_tags(‘Tags: ‘, ‘, ‘, ‘
    ‘); ?> Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
    </div>

    <?php endwhile; ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
    <div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
    </div>

    <?php else : ?>

    <h2 class=”center”>Not Found</h2>
    <p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
    <?php get_search_form(); ?>

    <?php endif; ?>

    </div>

    Thread Starter Kyamagero

    (@kyamagero)

    Am I missing something?

    Looks good to me though I may have missed something.
    So you created a page and designated it as the “posts” page, created some posts, and they don’t come up, correct? I can’t think of anything off the top of my head.

    Just curious, do your posts show in other themes (i.e Kubrick)?

    Thread Starter Kyamagero

    (@kyamagero)

    They don,t show in other posts either.

    However, they show on the home page. I do not know whether it is related to permalinks or not.

    Thread Starter Kyamagero

    (@kyamagero)

    I meant my posts do not show in other themes either apart from showing only on the home page but not the posts page.

    Hi Ronald,

    Your empty blog page has page_id=31 but when I follow your link it shows an empty page but with a post title and “Posted in uncategorized” which is normal for a post but not on a page. (Compare it to the “learn more” page.)
    So either it is not an empty page (your blog page) or you selected a template for it but for blogging I think you should leave that field at default so that the blog page uses the index.php from your theme.

    Thread Starter Kyamagero

    (@kyamagero)

    Thanks henkholland,

    I am using the default page for the blog page.

    I also made the blog page blank.

    I still do not know why it is not showing.

    Thanks again,

    Ronald

    Hi Ronald,

    In your first post here, you wrote
    I ensured that I use index.php for the posts page....

    I did not understand that but now you are sure that default is selected.

    And under Settings-Reading you selected the lower radio button and two different pages for the ront page and the posts page.

    Than I think (but it is not my field of knowledge) that your permalink structure wit the index.php in it, is messing up.
    Whuy not change to the default permalink structure for a minute and see what happens after refreshing the screen. (I see that you took your blog menu link out now but this one still works for testing https://www.co119.net/libertycommittee.com/?page_id=31 )

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Can’t see my posts.’ is closed to new replies.