• I’ve created a page called Blog.

    In Settings, Reading, Static – Home Page is Home
    Posts page is Blog from drop-down.
    But the posts don’t show on that page.

    If I go to Dashboard, Posts and view a Post, the url is domain.com.au/2012/02/socially-speaking/

    Can anyone help please?

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • hi hadders..use the query_posts function from the codex..

    example : if you want to display posts from a specific category on this particular page , you’d use :

    <?php query_posts('cat=4&showposts=5'); 
    
    							while (have_posts()) : the_post(); ?>
    							<?php echo "<div class='xxxx'>";?>
    							 <h1 class="xxx"><a class="xxx" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
    							 <?php
    
    							 the_content();
    							  echo "</div>";
    							 echo"<br/>";
    
    							endwhile;

    Got it ?

    cat=4 means category 4 and showposts=5 means number of posts to be shown is 5..

    Thread Starter hadders

    (@hadders)

    Thanks for your reply.

    I’m not sure what you mean though.

    Another way of explaining my issue is that I have set the Post to show on a page called Blog. I did this through
    Settings, Reading, Static – Home Page is Home
    Posts page is Blog

    But when I go to the Blog page there is nothing to be seen.

    However if I go to Archives, the posts are showing there.
    https://wp.me/P238uG-73

    So, how do I get the Posts to show on the page called Blog?

    I’m sure it’s simple but I can’t see it ??

    Thanks

    Good Blog page must be a blank page.

    Go to Settings > Permalinks and select (radio button) Post name. that should work. You have done the first two steps to having static home page and a separate blog page but there is the third step, that is setting the Permalinks.

    I hope that helps

    Thread Starter hadders

    (@hadders)

    Thanks for replying.

    On Settings, Permalinks there are five options.

    Default,
    Day and name
    Month and name
    Numeric
    Customer structure which has /archives/%post_id% in the field

    I can’t see a radio button for Posts.

    If I select Custom structure and save, it goes back to Numeric.

    The Blog page is still blank.

    Have you come across this before?

    Thanks

    Hi, having exactly the same problem. we have tried everything!! nothing seems to work…..

    This does not work for me, but try putting /%postname%/ into the custom structure box.

    help appriaciated….!

    https://codex.www.ads-software.com/Creating_a_Static_Front_Page Did you this as a guide?

    I can’t see a radio button for Posts.

    Then you have a javascript conflict some where.

    @juanbeth Please start your own thread.

    Looks like your Blog page is not a blank page. Please try removing everything in that page. It looks like you have a title or comment that says “Howdy Folks! Welcome to Visual, HTML5 Wordrpress Theme.”. Remove it and retry.

    As to Permalinks, you should have these options as radio buttons:
    Default
    Day and name
    Month and name
    Numeric
    Post name
    Custom Structure

    Select the radio button for “Post name”. What version of WP are you using. I am using WP 3.3.1. You can have a look at my test blog https://www.drpetersnews.com/test/blog/ and see how it should work. Is this what you were trying to do?

    Thread Starter hadders

    (@hadders)

    Hi Peter

    I’ve updated to WP 3.3.1 and now I have the Post radio button.

    The “Howdy Folks! Welcome to Visual, HTML5 Wordrpress Theme.” is not on the page. It is something to do with the theme.

    The page is definitely blank when I look in Edit page.

    And yes, your blog is what I am trying to create with the posts showing on the page called Blog.

    Thanks for your continued support.

    Andrew

    I could not find your theme to test it out on my site. What is the name of the theme.

    Could you switch back to Twenty Eleven theme and see if your WP site works the way you want it (except not the theme). If it works ok then there is a issue with the theme.

    Just want to know why your link in above message is https://wp.me/P238uG-73 but your blog is at https://fonebankfundraiser.com.au/ ? Is there a re-direction involved?

    Can you check in your website through your control panel, many use cPanel, whether you have a subdirectory called https://fonebankfundraiser.com.au/blog/

    If it exists please rename it to, say, https://fonebankfundraiser.com.au/blogold/ because having both a subdriectory /blog/ and a page name /blog/ can cause conflicts.

    Thread Starter hadders

    (@hadders)

    Switching to 2010 there was no problem so it must be the theme which is called Visual BTW. I also tried other themes and they worked OK.

    The https://wp.me/P238uG-73 is the shortlink offered by WP (on Edit Page, next to permalink, View Page, Get shortcode.

    I’m do not have access to cPanel at the moment but it seems like the problem is with the theme. I will try to get to cPanel asap.

    Thanks Peter.

    I think your patience has paid off – we need to change the theme.

    Thanks again.

    Andrew

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How can I show posts on a Blog page?’ is closed to new replies.