Wordpress网站没有显示所见即所得的编辑器内容?

时间:2012-05-04 15:12:36

标签: php html wordpress content-management-system

我的Wordpress网站真的不符合我的要求吗?!

它工作正常,没有被触摸,然后最近我发现每个页面在每个页面上显示相同的内容。不是wysiwyg编辑器中的个别内容。

这是我的头脑,我有一个修改过的主题,我已经用原始主题文件,page.php,index.php和single.php替换,看看它们是否与它们的页面有问题。但事实并非如此!?

链接是http://www.alleanza.co.uk,我想把它交给最后一个妻子,我仍然不能,因为没有内容被传递。有没有人有任何可能有用的想法?

但是我注意到它从Hello World Post中提取信息而不是页面的所见即所得内容。

但是,这是page.php的内容

<?php
/*
Template Name: Normal Template
*/
?>

<?php get_header(); ?>

    <div id="content">
    <div id="greybread"><?php if (function_exists('dimox_breadcrumbs')) dimox_breadcrumbs(); ?></div>

<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">

                <?php while ( have_posts() ) : the_post(); ?>

                    <?php the_content(); ?>

                    <?php comments_template( '', true ); ?>

                <?php endwhile; // end of the loop. ?>


    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    </div></div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

2 个答案:

答案 0 :(得分:0)

你能否在你的page.php中显示你在循环中的代码?

如果它在循环中缺少<php the_content(); ?>标记,您将看不到从Wordpress仪表板加载的内容。也可能是因为您已从页面属性模块中为页面选择了非默认模板。

答案 1 :(得分:0)

请注意,您已在page.php中指定了模板名称(模板名称:普通模板)。这意味着这不再是默认模板。如果要将其设置为所有页面的默认模板,请删除get_header()标记之前的行。 (http://codex.wordpress.org/Pages#What_Template_is_used_to_Display_a_Particular_Page.3F)

或者您可以选择“普通模板”作为编辑页面上归属的页面下的页面模板。见下文:

http://en.support.wordpress.com/pages/page-attributes/#template