How to add nofollow to the_post_navigation?

The only option I see is using {$adjacent}_post_link hook and replacing the fragment of final link or prepare the link yourself from scratch. Replace: add_filter( ‘next_post_link’, ‘se334246_nofollow_link’, 20, 5); add_filter( ‘previous_post_link’, ‘se334246_nofollow_link’, 20, 5); function se334246_nofollow_link( $output, $format, $link, $post, $adjacent ) { $search = sprintf(‘rel=”%s”‘, $adjacent); $output = str_replace($search, ‘rel=”nofollow”‘, $output); return $output; } … Read more

add additional anchors in navigation menu

Defining a Menu You must define a menu before you can add items to it. Login to the WordPress Dashboard. From the ‘Appearance’ menu on the left-hand side of the Dashboard, select the ‘Menus’ option to bring up the Menu Editor. Select Create a new menu at the top of the page Enter a name … Read more

All navigation fails and leads me to homepage

Some more information is welcome. maybe your .htaccess file got messed up? Delete it and, recreate in settings permalinks. deleting .htaccess. use your prefered ftp client and go into your root folder. find a file called .htaccess and delete it. If you can not seem to locate it make sure your settings show ‘hidden’ files. … Read more

determine if specific page is in list?

If you just need to remove, or ignore, it from $pages, use the exclude argument instead; $pages = wp_list_pages( array( ‘exclude’ => get_option( ‘page_on_front’ ), ‘child_of’ => $parent, ‘parent’ => $parent, ‘sort_column’ => ‘post_title’, ‘title_li’ => ”, ‘hierarchical’ => ‘0’ ) ); I’ve used wp_list_pages as I assume this is the function you’ve intended to … Read more