내 wordpress 플러그인 중 하나에서 thickbox 함수를 사용하여 동일한 플러그인 디렉토리에서 다른 PHP 파일을 호출하고 있습니다. 두꺼운 상자 내용이 같은 파일에서 콘텐츠를 표시하는 경우, 나는 thickbox에 다른 PHP 파일을 포함하면 작동하지 않습니다. 도와주세요.wordbox의 thickbox 인라인보기에 php 파일 포함
여기 내 코드입니다. Thickbox와 페이지가로드 될 때
<?php
add_thickbox();
include plugin_dir_path(__FILE__) . '/my_php_file.php'; ?>
<div id="cnt-id" style="display:none;">
<h1><?php _e('Select an Item', 'txt-domain'); ?></h1>
<?php print_r($tpl_list);?>
</div>
Thickbox와 앵커 링크
<a href="#TB_inline?width=600&height=550&inlineId=cnt-id" class="thickbox">
<?php _e('Open thickbox', 'txt-domain'); ?>
</a>
그래서, 단지 H1의 제목을 나타낸다. 내가 인쇄하려고하는 배열은 PHP 파일에 포함 된 정적 배열입니다.
도움이 될 것입니다.
감사합니다.