duanliang5051 2013-05-30 18:47
浏览 442

显示主页但在标题显示PAGE NOT FOUND

  1. I have developed a wordpress theme. There are 2 pages HOME and ABOUT US. For home page I use index.php and for about us page I used page.php template. But when I click on home page it shows the title "page not found".

  2. And I create a page named HOME then it is showing page contents which I posted in Home page but I need to show contents of index.php. (for example in index.php I have a slider. and I have created a page named "Home". When I click on home tab it is showing the contents that I posted on home page, NO SLIDER IS SHOWING)

Here is the site admission247.com

my page.php code

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="page_content">
<?php // echo '<br/><br/>'; ?>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
  • 写回答

2条回答 默认 最新

  • dongxin8709 2013-05-31 03:56
    关注

    It's difficult to tell without seeing the code.

    Here is a snippet of code I use for my header.

    <title><?php
        global $page, $paged;
    
        wp_title("&laquo;", true, "right");
    
        bloginfo("name");
    
        $site_description = get_bloginfo("description", "display");
    
        if($site_description && (is_home() || is_front_page()))
            echo " &laquo; $site_description";
    
        if($paged >= 2 || $page >= 2)
        echo " &laquo; " . sprintf(__("Page %s", "h18"), max($paged, $page));
    ?></title>
    

    If you can, post as much code as you can. It will help others understand your problem more.

    评论

报告相同问题?

悬赏问题

  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示