• Hi,
    The blog page I’m working on only shows the most recent post, twice.
    I have tried the following so far:

    – checked the settings in the Settings>Reading: I have static front page and page of posts named “Blog”. Settings correct under “Customize” as well.
    – deactivated all the plug-ins: no help
    – tested my child-theme stylesheet (i.e. removed content it to see if it helped) – no.

    The only thing that seems to fix it is this: if I activate the parent-theme (2011 template in this case), the blog page shows up normal.

    So something is wrong in my child-theme but what? Not the CSS but maybe one of the other files? I have in the child-theme folder the index.php, functions.php, pageofposts.php, screenshot.png and style.css

    Wish I could give you a link to this website but it’s on my local server.

    Anyone has an idea? Thanks in advance.

Viewing 16 replies (of 16 total)
  • just added your index.php into a local test site child theme Twenty Eleven, and it does show one post of each of those categories in the array.
    the code in itself seems to be ok.

    You asked: does each of the categories have at least one published post?
    Yes, except for Uncategorized.

    no – right now, there are no posts in cat 5 and 22 and 1 – only in cat 3 there is a post and this is shown on your blog page.

    for example, test the link muriellehamilton.com/jamietest/?cat=22 which should show posts of cat 22 ………

    edit:
    if you find it more intuitive to use category slugs, change two lines in your code:
    $my_cat_array = array('uncategorized','food','modern-family');
    and
    'category_name' => $my_cat // the category slug

Viewing 16 replies (of 16 total)
  • The topic ‘Blog page shows same post twice and nothing else’ is closed to new replies.