Support » Fixing WordPress » Blog Posts Not Showing

  • Resolved bmcintyre

    (@bmcintyre)


    Hello,

    Quick one. Probably so easy I am missing something.

    When I create a new category/post, it is not pushing to my main blog. I have 2 other blogs (if I select for example video or podcasts) than it pushes to those category. All posts no matter what should post here, Link

    When I post with an existing category it works fine.

    Ideas?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi

    (@esmi)

    Forum Moderator

    Try checking your theme’s main posts template for a custom query.

    Thanks for the reply esmi.

    Sorry my WordPress guy is out on vacation for 2 weeks, the nerve.

    This is the query I am getting.

    $args = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => 5, ‘paged’ => $paged, ‘cat’ => ‘8,9,10,11,12,23’ );

    Where do I find the ‘cat’ # (ex 8,9,10,11,12,23)

    Thanks

    esmi

    (@esmi)

    Forum Moderator

    That custom query is limiting the posts shown to only those categories in that list (ie with ids 8,9 etc). If you want to open up the page to show post from all categories, change it to:

    args = array( 'post_type' => 'post', 'posts_per_page' => 5, 'paged' => $paged );

    Hey esmi,

    We we don’t want all categories to post.

    We have 8 additional categories that we do not want posted on this page (video-web-design, video-social-media, video-seo-internet-marketing, video-mobile-marketing, podcasts-web-design, podcasts-social-media, podcasts-seo-internet-marketing, and podcasts-mobile-marketing).

    The rest and all new ones we need to post to the main blog page.

    Ideas?

    Thanks

    esmi

    (@esmi)

    Forum Moderator

    You will need to find the ids for each of these categories and add them to the list in the custom query.

    Exactly, do you know where I find the category #, we have permalinks set up so I can’t see the id #.

    Thanks

    I got it, just edit it and it will show the id in the URL.

    Thanks esmi!

    The category id was placed here (238) in this case (I triple checked this).

    $args = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => 5, ‘paged’ => $paged, ‘cat’ => ‘8,9,10,11,12,23,238’ );

    Still not showing the post?

    IDeas?

    Never mind, sorry to bug you.

    Fixed.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Blog Posts Not Showing’ is closed to new replies.