Wordpress上的AJAX页面加载


AJAX Page Loading on Wordpress

我正在Wordpress网站上安装"高级AJAX页面加载器"插件。主题安装要求"确保主题的内容区域包含在一个标签中,比如一个名为"content"的id属性的DIV"。

我的主题在page.php文件中的内容周围有一个看起来像变量div包装器的东西:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <div id="page-<?php the_ID(); ?>" class="type-page" itemscope itemtype="http://schema.org/Article">
        <!-- page-title -->
        <?php if($themify->page_title != "yes"): ?>
            <h1 class="page-title" itemprop="name"><?php the_title(); ?></h1>
        <?php endif; ?>
        <!-- /page-title -->
        <div class="page-content entry-content" itemprop="articleBody">
            <?php the_content(); ?>

我的问题是,它看起来像是我在看代码的正确部分,即

如果是这样,我将如何识别相应的div包装器,它看起来像是基于页面ID的变量:?

说明要求您将内容区域包装在id为"content"的div中。你上面的代码没有这个;

<div id="content">
    // content here
 </div>