Finding all parent pages in WodPress [Code Snippet]

Sometimes we needs to find all parent pages of current page in WordPress. It is useful to create a breadcrumb. Here is a example code snippet to find all parent pages. <ul class=”page-breadcrumbs”> <li><a href=”<?php echo home_url(); ?>”><?php _e( ‘Home’, ‘mondira’ ) ?></a></li> <?php global $post; $parent_id = $post->post_parent; $breadcrumbs = array(); while ( $parent_id[…] Continue Reading

WordPress sidebars fetching on other cms with wordpress xml rpc
wordpress 404 redirect to other url

wordpress 404 redirect to other url

If you are using wordpress as blog of your website blog and you are using other cms as your main website now you want any 404 of wordpress blog will redirect to that other cms 404 page then you use below code example to redirect your wordpress blog 404 page. add_action(‘wp’,’determine_if_fourzerofour_page’); function determine_if_fourzerofour_page(&$arr){ global $wp_query;[…] Continue Reading

Contact form 7 nice css3 styles

Contact form 7 nice css3 styles

If you are using wordpress and for contact form Contact us 7 plugins then you can use below css3 codes to make that contact form 7 css looks nicer then default one! /*Contact Form 7 CSS Support*/ span.wpcf7-not-valid-tip{display: none !important; } div.wpcf7 .wpcf7-not-valid{ border: 1px solid #F00; margin: 0; } div.wpcf7-validation-errors{ -webkit-box-sizing: border-box; /* Safari/Chrome,[…] Continue Reading

Unique Page Sidebars Is not working
Upload featured image on custom post from wordpress front-end
404 Page Not Found after custom form submission on wordpress
WP Editor Broken in Post/Page Add Interface