Two shortcodes cause page to break.
-
I had two shortcodes on a page and it was causing it to break ( couldn’t see how ), but I traced it all the way down to this one line and commenting it out fixed the issue.
$body_content = apply_filters( ‘the_content’, $post->post_content );
protected function body_keywords( $ID, $max = 20 ) { $post = get_post( $ID ); if ( empty( $post ) ) { return ''; } $this->discovering_keywords = true; //$body_content = apply_filters( 'the_content', $post->post_content ); $this->discovering_keywords = false; $keywords = apply_filters( 'yarpp_body_keywords', $this->extract_keywords( $body_content, $max, $ID ), $max, $ID ); return $keywords; }
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Two shortcodes cause page to break.’ is closed to new replies.