Error with customized single.php since last update (1.4.2.1)

  • Author
    Posts
  • #48394
    Cecile Combe
    Power User

    Since the last update, all my posts were white. Only the title, no texts, no pictures !?
    Category pages were ok, only the posts were affected.

    I searched and localized the problem : the child single.php file.
    I delete it from child theme. All is ok.
    But how to keep the customized functions I used to have with my child single.php ?

    The functions are :
    1- next and previous buttons at bottom of the post page go to next/previous post of the same category (instead of any category)
    2- a back button to the category page

    The code I used to have for that:

    
     %title', TRUE ); ?>
    ', TRUE ); ?>
    					<?php
    					$myLstCat = (array) get_the_category(intval(get_the_ID()));
    					if (count($myLstCat) >= 1) {
    					$myCat = &$myLstCat[0];
    					$myCatLabel = $myCat->cat_name;
    					$myCatLink = get_category_link(intval($myCat->cat_ID));
    					?>
    ">Retour vers 
    
    <?php
    }
    ?>
    <!-- #nav-below -->

    Do I have to change this code ? Add new one in another php file, … ?

    Website: www.lysithee.com

    #48398
    Cecile Combe
    Power User

    The code doesn’t appear well so I put a printscreen of it : http://hpics.li/da1941a

    #48421
    Cecile Combe
    Power User

    Found by myself in WP codex !

    #48808
    Zed
    Cryout Creations mastermind

    You can copy over the current single.php file from Nirvana and edit the code

    				<div id="nav-below" class="navigation">
    					<div class="nav-previous"><?php previous_post_link( '%link', '<i class="crycon-left-dir"></i> %title' ); ?></div>
    					<div class="nav-next"><?php next_post_link( '%link', '%title <i class="crycon-right-dir"></i>' ); ?></div>
    				</div><!-- #nav-below -->

    to restore your customizations.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #48866
    Cecile Combe
    Power User

    Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Error with customized single.php since last update (1.4.2.1)’ is closed to new replies.