• Hi. I wonder why you used:
    if (is_front_page() || is_single()) {
    as a condition to execute your “search and publish missed posts” code.
    There are WordPress sites that are built, mostly (or exclusively) with pages, and not posts. In this sort of web site, your code will only run if someone access the front page.
    So, why not using
    if (is_front_page() || is_single() || is_page) {
    instead?

    Regards,

Viewing 1 replies (of 1 total)
  • Plugin Author Jennifer Moss

    (@mossifer)

    I tried to cover sites that had both posts and pages, without it being too heavy on the system. Those that have pages usually have the front page as a landing page, therefore making it more likely a user will hit it.

    We have to be sensitive to sites that get a LOT of traffic as this could take a toll on the speed index.

    Thanks for writing!

Viewing 1 replies (of 1 total)
  • The topic ‘Doubts about your code…’ is closed to new replies.