douhunkuang8955 2012-12-20 14:59
浏览 46

点击发布并重定向到主页

When i click on post url on my site -> it redirect me to the homepage. Indeed the address changed with the post name, but it display the home page.

Site url: http://www.as-bidud.co.il/

I know that you will see the site language as problem to help but for see that problem - click on the "read more \ קרא עוד" button on the slider.

When i switched the theme to Twenty eleven - everything work fine.

I dont find the problem in the function.php

  • I already turned off the plugins and turn on one by one and not found the problem
  • I thought the problems come from the Custom Post Type UI plugin but...not

Pages url work fine.

.htacess :

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Single.php file:

<?php get_header(); ?>
<?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?>
<div id="main" class="sub-page">
            <div id="page-view">
                <h1 class="page-title"><span><?php wp_title ( '', true,'left' ); ?></span></h1>
                <div class="page-content">
                   <p><?php the_content(); ?></p>



                         <?php  endwhile;  ?>  
                          <?php endif; ?>   

        <?php get_footer(); ?>
  • 写回答

1条回答 默认 最新

  • doulian8485 2012-12-20 18:17
    关注

    OMG. 5 hours. 5 hours for changing Single.php to single.php. Lowercase. that's all.

    评论

报告相同问题?

悬赏问题

  • ¥15 BP神经网络控制倒立摆
  • ¥20 要这个数学建模编程的代码 并且能完整允许出来结果 完整的过程和数据的结果
  • ¥15 html5+css和javascript有人可以帮吗?图片要怎么插入代码里面啊
  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算