Sticky Posts Pages not loading

  • Posted in : TheBlogger
  • svorwerk
    Participant

    Any posts I create that I mark as “Sticky” are showing
    you are lost!
    The page you are looking for was not found!
    However, if I change the theme to a different theme, its working fine, same URL and everything. It’s only happening to sticky posts.

    svorwerk
    Participant

    Ok further inspection shows that the post is showing up when I mark “Include in blog”, whereas I had it marked as “exclude in blog”, but this doesn’t work for me, as I don’t want these posts to show up in the blog post list.

    serkan
    Moderator

    Hi, The blog list takes information from the blog. You can hide or show sticky posts on the blog. There is no option to hide it in the blog but show it in the blog list.
    Thanks

    svorwerk
    Participant

    You’re missing the point, the URL’s are broken or something. When I click the link to a sticky post, it does not load the page it shows an error!

    svorwerk
    Participant

    SPECIFICALLY:

    From Theme->Customize->Blog->Sticky Posts->Include to blog, the post links work.

    If I select Theme->Customize->Blog->Sticky Posts->Exclude from blog the links take me to a page that says:

    you are lost!
    The page you are looking for was not found!

    svorwerk
    Participant

    Please let me know if you need any more specific information than that, also I have tried changing permalinks and I have tried changing my .htaccess.

    The links work fine if I change the theme to a different theme, so I have narrowed the issue down to specifically this theme and specifically only in the instance of selecting “Exclude from blog”

    Thank you

    serkan
    Moderator

    Hi,
    If you have third party plugins, please deactivate them and try it again. If you still have any issue, send me your wp admin details via our contact form and add this topic url as well.
    Thanks

    svorwerk
    Participant

    I’ve found the issue, and this is a weirdly specific case, but I had to change the ./admin/pre-get-posts.php file function to include the (is_home()) conditional and it worked. I’m still confused as to why this situation occured, as it was seemingly out of nowhere, but it looks like the conditional was commented out at one point or another, so by switching the commented line, I was able to get the normal functionality back. Thank you for you support!

    serkan
    Moderator

    Hi, The solution you find seems quite interesting. You should not have to do this. If you make your changes on the child theme, there will be no corruption with the update. Thank you for your feedback.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register