Back button to previous page and breadcrumbs

For the button behavior, If it’s a one-off use case, you could add custom php conditional to check the referring url $_SERVER[‘HTTP_REFERER’] and current page/post ID or url. Then, either add a class to the button’s containing div wrapper in the template for hiding via css or directly output/include the button html in the template … Read more

Only show sub-category

You can make use of the get_the_categories filter to remove the parent categories from the list. the_category() uses get_the_category_list() which in turn uses get_the_category() The idea is to check the categories returned against an array of parent ids and then removing those categories from the list. You can try the following (Requires PHP 5.3+) add_filter( … Read more

delete a page from a breadcrumb trail

Based on the code your used my guess is it would be as simple as adding a unset($bcarray[0]); to their code on line 15. Here is the code in it’s entirety: function write_breadcrumb() { $pid = $post->ID; $trail = “<a href=”https://wordpress.stackexchange.com/”>Home</a>”; if (is_front_page()) : // do nothing elseif (is_page()) : $bcarray = array(); $pdata = … Read more

Get menu names and same depth level menu names

Sorry, this is a little vague but it should get you started. It seems like you need to: Check if the page has a parent <?php if($post->post_parent) ?> Something like <?php echo $post->post_parent; ?> Something like <a href=”https://wordpress.stackexchange.com/questions/113592/<?php the_permalink() ?>”><?php the_title(); ?></a> Something like the code below, then apply your solution for turning it into … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)