• Hello,

    I’ve just created a new website with WordPress. In this website, we would like to have a static homepage and have all blog posts post to a different page. Under Settings > Reading, I’ve checked the “Static Page” box and selected which page I would like to be the Front Page and which I would like to be the Posts Page. Now, however, when you go to my website and click on the “Updates” tab (the page I selected for my posts page), it brings up the information under my homepage and not my posts.

    This is a very strange problem and seems to be a glitch, however I am not too savvy with code and cannot figure out what is going on.

    Any help would be much appreciated. You can find my website at https://www.boombuster.com/wp.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Your Updates page is correctly listing your posts using (I assume) index.php but I suspect that your theme’s index.php file need editing to remove the page title “Home” and provide links to each of your individual posts. Right now it uses the_excerpt() to display a post teaser but no link to the full post.

    Thread Starter jabrams

    (@jabrams)

    Thank you for your comment. I looked through my code on my index.php page and found “the_exerpt()” line of code. I’m not sure what to change from here though. You said to provide links to each of my individual posts. How do I do that?

    The line of code in my index.php page is as follows if that helps:

    <p><?php if ( get_post_meta($post->ID, “page_excerpt”, $single = true) <> “” ) { echo get_post_meta($post->ID, “page_excerpt”, $single = true); } else { the_excerpt(); }?> ” title=”<?php the_title(); ?>”>More Info</p>

    Thanks!

    Try replacing else { the_excerpt(); }?> with else { the_content(); }?>. as for turning the title of your posts into links, I’d need to see the relevant code. You could place a copy of index.php in the WordPress pastebin and post a link back here or post the relevant code snippet in-between backticks (`}.

    [duplicate post removed]

    Thread Starter jabrams

    (@jabrams)

    Replacing the_excerpt with the_content did not work. It seems that there is a glitch in my code somewhere (perhaps caused by my theme) that is causing it to draw information from the home page. I tried deleting and re-adding pages but things didn’t change too much. Even now, if I change my Reading settings back to a posts homepage, the posts do not show. Seems like something got caught in the code somewhere.

    We’re going to try and reload the theme tonight and try and solve the problem that way. If you have any other suggestions, that would be helpful, otherwise, it seems like this is a lost cause.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Selecting a Static Page and Posts Page’ is closed to new replies.