add_faqs_content method overrides archives when FAQ Page not set
-
When the FAQ page is not defined in Settings and when the content being viewed is not a Post, this expression is true and the [ultimate-faqs] shortcode is expanded
if ( $post->ID == $this->settings->get_setting( 'faq-page' ) ) {
In my site, this prevents the Events Calendar plugin displaying its archive page
The work-around is to define the “FAQ” page in FAQS>Settings>Basic>General
The fix is to add the following code before the above expression:
if ( 0 === $post->ID ) { return $content; }
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘add_faqs_content method overrides archives when FAQ Page not set’ is closed to new replies.