他のページのincludeは、上手く行っているので、includeが出来ないサーバーや、環境ではないと思います。
ただ、うまくいっているページは、既にファイルがあり、WordPressで書き出されたファイルではありません。
他の部分は、ファイルがあるのですね。
そうであれば、エラーメッセージ通りで、
Warning: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in ~
Warning: include_once(http://~): failed to open stream: no suitable wrapper could be found in ~
Warning: include_once(): Failed opening 'http://~' for inclusion (include_path='.:/opt/php-7.2.6/data/pear') in
allow_url_include が、 0 (OFF) になっているというメッセージなので、php.ini 等で、 allow_url_include を有効に設定してください。
追記を受けて...
明記したコードは下記の通りになります。
<?php
include_once(TEMPLATEPATH.'/calendar2/');
?>
まず、include_once は、実在するファイル
しか読み込めません。
TEMPLATEPATH は、通常、テンプレートディレクトリのファイルパスが定義されているので、/var/www/example.jp/wp-content/themes/twentyseventeen-child
のような感じになると思うのですが...
試しに、wordpress の twentyseventeen の子テーマで page-xxx.php を作成して、
<?php
echo "TEMPLATEPATH";
include_once(TEMPLATEPATH.'/css/');
?>
のように試しにディレクトリを include させてみたところ、
include_once(/var/www/example.jp/wp-content/themes/twentyseventeen-child/css/): failed to open stream: No such file or directory in /var/www/example.jp/wp-content/themes/twentyseventeen-child/page-xxx.php on line 29
include_once(): Failed opening '/var/www/example.jp/wp-content/themes/twentyseventeen-child/css/' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/example.jp/wp-content/themes/twentyseventeen-child/page-xxx.php on line 29
というエラーになりました。