How to reverse post navigation at bottom of post

You need to swap their arguments & rel tag too: <?php echo str_replace( ‘rel=”next”‘, ‘rel=”prev”‘, get_next_post_link( ‘%link’, _x( ‘<span class=”meta-nav”>&larr;</span> %title’, ‘Previous post link’, ‘twentythirteen’ ) ) ); ?> <?php echo str_replace( ‘rel=”prev”‘, ‘rel=”next”‘, get_previous_post_link( ‘%link’, _x( ‘%title <span class=”meta-nav”>&rarr;</span>’, ‘Next post link’, ‘twentythirteen’ ) ) ); ?>

Do we need to change our child function.php to require/include child dir files when we add an over-riding file.php into the child theme

Ok, the first-thing I wanted to double-check is that rather than make any modifications to parent PHP, you simply create one with a duplicate name in the child directory which completely overrides the parent file? No. You don’t create a theme with the same name. You create a theme with whatever name you choose and … Read more

Creating a child theme after numerous edits to parent theme

[*] If I were you… download original theme. caution: same version install git from https://git-scm.com/downloads [*] do Git Init in original theme, git add && git commit move .git folder (hidden) to your edited theme use git status, git diff… etc Be happy [*]Git detects all the diferences in your work directory. ciao [*]

Removed custom post type archive page shows blog page

If you are using WordPress 4.4+ (which you should), you can make use of the register_post_type_args filter to adjust the arguments passed to register_post_type() when the post type is registered. In your child theme, you can do the following add_filter( ‘register_post_type_args’, function( $args, $post_type ) { // Make sure we only target the portfolio post … Read more