diff --git a/lib/Form/DisplayFormInWPContent.php b/lib/Form/DisplayFormInWPContent.php index 6437e34514..042c60a9d6 100644 --- a/lib/Form/DisplayFormInWPContent.php +++ b/lib/Form/DisplayFormInWPContent.php @@ -39,7 +39,7 @@ class DisplayFormInWPContent { private function shouldDisplay(): bool { // this code ensures that we display the form only on a page which is related to single post - if (!$this->wp->isSingle()) return false; + if (!$this->wp->isSingle() && !$this->wp->isPage()) return false; $cache = $this->wp->getTransient(DisplayFormInWPContent::NO_FORM_TRANSIENT_KEY); if (isset($cache[$this->wp->getPostType()])) return false; return true;