Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/384.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/267.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在模式框中打开php页面?_Javascript_Php_Jquery_Html_Css - Fatal编程技术网

Javascript 在模式框中打开php页面?

Javascript 在模式框中打开php页面?,javascript,php,jquery,html,css,Javascript,Php,Jquery,Html,Css,我正在创建一个图像提要,但也有图像内容。单击image时,调用page single-image.php 我试图在模式框中打开single-image.php,但它不起作用 single-image.php <?php get_header(); ?> <section id="content" role="main" class="ip-main"> <?php if(have_posts()) : while(have_posts()) : th

我正在创建一个图像提要,但也有图像内容。单击image时,调用page single-image.php

我试图在模式框中打开single-image.php,但它不起作用

single-image.php

<?php get_header(); ?>
  <section id="content" role="main" class="ip-main">
      <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
      <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

       <?php
       /* BEGIN IMAGEPRESS CODE */
       /* main image display (required) */
            if(function_exists('ip_main'))
                ip_main(get_the_ID());

       /* related images (optional, can be placed in the sidebar) */
            if(function_exists('ip_related'))
                ip_related(get_the_ID());
            /* END IMAGEPRESS CODE */
            ?>
        </article>


        <?php comments_template('', true); ?>
    <?php endwhile; endif; ?>
</section>

<?php get_footer(); ?>


当你说它不起作用时,那没有多大帮助。你有一个带有模式框插件设置的HTML吗?打开模式窗口的链接在哪里,我们需要更多信息。php不工作。第一:服务器执行uphp。第二:如果u php创建html-server,则将此html代码提供给u浏览器。因此,我在显示图像网格的页面上调用一个短代码。单击单个图像后,它将调用上面的页面single-image.php并打开一个新页面Mysite.com/image/,而不是打开此页面,我希望它显示在lightbox/modal框中,当您说它不工作时,这没有多大帮助。你有一个带有模式框插件设置的HTML吗?打开模式窗口的链接在哪里,我们需要更多信息。php不工作。第一:服务器执行uphp。第二:如果u php创建html-server,则将此html代码提供给u浏览器。因此,我在显示图像网格的页面上调用一个短代码。单击单个图像后,它将调用上面的页面single-image.php并打开一个新页面Mysite.com/image/,而不是打开此页面,我希望它显示在lightbox/modal框中