i am facing a bad problem. it will be well appreciated if any one can help me regarding my problem.
i am using custom fields on posts and pages, just like removing Page navigation, Footer, Sidebar, ETC. when i use custom field on my recently added post (first post on displaying on Blog page) for example i remove navigation from that recently added post it also remove the navigation from Blog page where all the post are listing.
i am removing all the element from Jquery .remove() and i add all this code in footer
how to handle this i do not want any change on blog page if i am making any change in recently added post from custom fields.
<?php
global $post;
if(get_post_meta($post->ID, '_remove_topnavigation', true)=='yes'): ?>
jQuery('#branding #navigation').remove();
<?php else : ?>
//Do nothing
<?php endif; ?>