Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Post on home page using permalinks - I have them off (http://forum.bytesforall.com/showthread.php?t=1159)

RickyRobi Apr 8, 2009 04:58 AM

Post on home page using permalinks - I have them off
 
The post on my home page is trying to use custom permalinks. I have that option set to default so I end up with a 404. The link in the sidebar is correctly using the default. I changed the theme to the default wordpress theme and it works correctly on the home page. How do I get the post on home page to use the correct link?

Flynn Apr 8, 2009 06:00 PM

This should be fixed in the current version 3.3.2. Either update or alternatively replace the Post Headline part in index.php with this

PHP Code:

        <!-- Post Headline -->                    
        <div class="post-headline">    
        <h2><?php 
        
if( !is_single() AND !is_page() ) { ?>
            <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php 
            
if (function_exists('the_title_attribute')) { 
                
the_title_attribute();
            } 
            elseif (
function_exists('the_title')) { 
                
the_title();
            } 
?>"><?php 
        
the_title(); 
        if( !
is_single() AND !is_page() ) { ?>
            </a><?php 
        
?>
        </h2>
        </div>


RickyRobi Apr 9, 2009 04:33 AM

Thanks! I will update.


All times are GMT -6. The time now is 06:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.