【发布时间】:2015-03-19 11:57:48
【问题描述】:
我正在尝试在我的 Wordpress 网站上安装“Advanced AJAX Page Loader”插件。主题安装说“确保您的主题将内容区域包装在标签中,例如带有名为“内容”的 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 的变量:?
【问题讨论】:
标签: php jquery ajax wordpress plugins