-
AuthorPosts
-
June 27th, 2017 at 15:55 #48394Cecile CombePower 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 pageThe 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
June 27th, 2017 at 16:01 #48398Cecile CombePower UserThe code doesn’t appear well so I put a printscreen of it : http://hpics.li/da1941a
June 27th, 2017 at 21:28 #48421Cecile CombePower UserFound by myself in WP codex !
July 2nd, 2017 at 14:55 #48808ZedCryout Creations mastermindYou 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.July 3rd, 2017 at 09:28 #48866Cecile CombePower UserThanks.
-
AuthorPosts
The topic ‘Error with customized single.php since last update (1.4.2.1)’ is closed to new replies.