• Resolved chithanh

    (@chithanh)


    Could you please help me to fix this error

    Warning: require(/home/tinh/public_html/wp-content/plugins/td-composer/legacy/Newspaper): failed to open stream: No such file or directory in /home/tinh/public_html/wp-includes/comment-template.php on line 1510

    The site is experiencing technical difficulties.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    this actually is a problem with the Newspaper theme which does not seem to be handling the Custom Post Type pages correctly.

    Either way, you should be able to resolve it by adding the code below in your theme functions.php file

    
    add_filter( "comments_template", function( $tpl ) {
      if( is_singular( 'advert' ) ) {
        $tpl = WP_PLUGIN_DIR . "/index.php";
      }
      return $tpl;
    } );
    

    It would be also good to ask the Newspaper theme support if they could resolve the problem in their theme so the code snippet above would not be needed, or maybe there is some option in the theme to select a comments template in which case you might not need the code above as well.

Viewing 1 replies (of 1 total)
  • The topic ‘Newspaper theme error’ is closed to new replies.