Support » Themes and Templates » Blog posts not showing up on blog page

  • Hi,

    I have specified a page in settings to become the blog part of my site. However, since deleting the standard blogs that come with the theme, and then creating my own first post – it doesnt seem to be showing on the blog page!

    Anyone got any ideas why this is?

    Thanks
    Dan

Viewing 15 replies - 1 through 15 (of 25 total)
  • esmi

    (@esmi)

    Forum Moderator

    Site url?

    I’m opening myself up to critisism here…..

    http://www.seo-consulting-services.co.uk/

    before you do criticise, please bear in mind that its just a holding site until i can create my own site, in my own time.

    The problem is on the “SEO BLOG” page…. no posts appearing.

    Thanks
    Dan

    esmi

    (@esmi)

    Forum Moderator

    No criticisms here – though I noticed that you’ve got a typo in your image table on your otherwise completely valid home page. heigh instead of height. 🙂

    Spotted one possible problem with your posts – their urls: Eg:

    http://www.seo-consulting-services.co.uk/index.php/seo-consulting-services-starts-up/

    /index.php/ ??

    What custom permalink structure are you using?

    What I’d suggest is that you set up a new page called Blog and then set this as your posts page via Admin/Settings/Reading.

    Thanks for the kind response – and thanks for pointing out the typo.

    With regards to the permalinks i have the following set up –

    /index.php/%postname%/

    But i found that when i removed the /index.php/ part of the structure, the site broke. Any ideas?

    I’ll try and re-do the blog page and see if this fixes the problem. thanks again Esmi and i hope you can still help with the permalink issue, as that would be superb for SEO reasons and all that.

    Thanks
    Dan

    esmi

    (@esmi)

    Forum Moderator

    start your permalink structure with the category, tag, author, or postname fields for performance reasons. Start your permalink structure with a numeric field, such as the year or post ID – eg:

    /%year%/%postname%/

    or

    /%post_id%/%postname%/

    http://codex.wordpress.org/Using_Permalinks

    Also check the urls entered in Admin/Settings/General. Assuming that WP in is the root of the domain, they should be:

    http://www.seo-consulting-services.co.uk

    No trailing ‘/’

    Hi Esmi,

    Thanks again for hte advice.

    I still cant get the blog posts to appear on the blog post page though! I’ve deleted the old blog page, recreated it and then re asigned that page as the post page, but they’re still not showing up.

    Any ideas?

    Thanks
    Dan

    esmi

    (@esmi)

    Forum Moderator

    What permalink structure are you using now? Where is WordPress installed on this domain? There’s something strange going on with either the permalinks or the site urls. And I think that’s the root cause behind your empty blog page.

    Hi Esmi,

    I haven’t changed the permalink structure yet. WordPress is installed in the root of my domain.

    I’m still stumped…..!

    Let me take database back up, and perhaps, if you wouldn’t mind, i could give you a login to my site and see if you can spot any issues there?

    What do you think?

    Thanks
    Dan

    Hi dandaman2010,
    I looked over your website briefly and have one idea. My first point of reference would be your index.php file in your theme. All other pages should be using page.php, and they’re all working, thus the issue could more than likely be on index.php.

    If you could try making a backup of index.php and copying the loop code from page.php into index.php, you should be able to see posts being displayed (if the posts are set to “published”). They layout may not be exactly what you’re after, although getting the posts to display is the first thing, I s’pose. 🙂

    I hope this helps.

    Cheers,
    Matt.

    Hi MAtt,

    Thanks for this, but im not sure i can find the loop code you are referring too……

    a little further help?

    Thanks
    Dan

    Hi Dan,
    The WordPress loop is the code that starts with something like this:

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

    and ends with something like this:

    <?php endwhile; endif; ?>

    If you copy and paste the above code, and all code in between, from your index.php file into a blank txt file (and save it as a backup) and then copy and paste the same code from page.php and paste it in place of the code on index.php, you may be able to then see blog posts (as long as you have published posts).

    We have established, by looking at your website, that page.php is functioning correctly, as it is being used to generate your subpages.

    I hope this helps.

    Cheers,
    Matt.

    Matt,

    I F*****ING LOVE YOU!!!!!!

    GENIUS!!! worked like a dream!

    Thanks mate, appreciate it.

    Ever need some good SEO advice, its on the house mate – (word press isnt my expertise 😉

    Thanks
    Dan

    Hey Dan,
    Thanks man. Glad I could help. 🙂

    Cheers,
    Matt.

    Hi Matt,

    I’m having the same issue, and I tried the solution you provided to dandaman, but no luck. I think my permalinks structure is causing the issue, but i’ve tried everything. Pretty much all of my pages are set up as static pages, and I wanted to the blog page to show my recent post, but no luck. I’m hoping you can help me with this.
    Here is the site (still in the works) http://www.davecamarillo.com/GJJ2/blog/

    Thanks

    Hi Swu,

    Are you using template page for home page?

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Blog posts not showing up on blog page’ is closed to new replies.