Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mc3digital

    (@mc3digital)

    The post is live on the site, but not displaying on the page I linked to, the issue persists.

    I switched themes and did see it in a list of recent posts. I guess this means it could be code in the functions.php file or something? I am running out of ideas as to where to look.

    I do not have full server access. I think we are using cloudflare, but I do not have the controls to adjust this. I am not sure this page is cached at all since I made a similar, new page to work around this idea and that other page, when set to the posts page in the WP settings also didn’t show it.

    It does show up on the front page which is loaded via the function wp_get_recent_posts().

    I found some suspicious code in my functions.php file. Commenting this out resolved the issue. I found a pattern in that there was 2 posts which get tagged as app alerts, which load into our mobile app. I noticed that these were not in the list of posts. They were for some reason being excluded from the ‘view all’ lists using this method…

    function exclude_category_newspage( $query ) {
    if ( $query->is_home() ) {
        $query->set( 'cat', '-878' );
    }
    return $query;
    }

    Oh how fun it is to go over other peoples work.
    Thank you all for taking a look!

    • This reply was modified 10 months, 3 weeks ago by mc3digital.
    Thread Starter mc3digital

    (@mc3digital)

    I hate to ask the obvious, but did you actually publish the post, as opposed to it being a draft?

    Yes, it is published. I doubled checked before posting here. As well, you can see the post if you scroll down to the archives in sidebar and in 2024 you will see a published post. I wish the solution was that simple. I tried to mention that in the first post but didn’t do so very clearly.

    Also, please make certain the posts page is set to “News and Views” in the ‘Settings > Reading’ menu of your dashboard.

    It is. I also tried changing the page after creating a new one just to test things out. Same results on both pages.

    The theme I inherited has a lot of hands in it before me, and the site is 10 years old apprx. I was wondering if that had something to do with it. I reviewed that in detail, including searching for function calls. Nothing. I can’t find an override (plus I made a new page to try getting around this).

    Can’t find anything to indicate why I can’t get this post to show up. I even used the block editor to display posts and the most recent one was not included.

    Also checked for caching plugins and the only one I saw WP Rocket is disabled.

    Still stuck on this if anyone has ideas…

    • This reply was modified 10 months, 3 weeks ago by mc3digital.
    • This reply was modified 10 months, 3 weeks ago by mc3digital.
Viewing 2 replies - 1 through 2 (of 2 total)