Display a specified content on a Page and all its child pages

You can do that by using this nice little function: function is_page_or_child_of($slug){ global $post; if (empty($slug)) return false; //is it the page? if ($post->post_name = $slug) return true; //check the children $page = get_page_by_path($slug); $children = get_pages(‘child_of=”.$page->ID.”&sort_column=post_date&sort_order=desc’); foreach ($children as $sub){ if ($post->ID == $sub->ID){ return true; } } return false; } and instead of … Read more

Add a menu metabox to post edit page

I’m not sure I understand the whole process. Why not build the navigation at the same time you parse out the content with the shortcodes? You know how many tabs there are and what content they’re connected to, I don’t see why widgets or wp menus need to be involved. Maybe if you showed us … Read more

Problems in creating a static site with WordPress

First, check your permalink settings: Dashboard -> Settings -> Permalinks Second, check to ensure you don’t somehow have a Page slug conflict. Go to Dashboard -> Pages, click the “Trash” tab, and ensure you don’t have any Pages in the trash (if so, delete them if you don’t need them). Third, check the page-slug for … Read more

upgrade has caused page content to disappear

If content displays within WordPress itself when you are logged into the dashboard but does not display on the front end of your site it is almost always a theme problem. If you have access to server logs, such as error logs in cPanel, you can see what errors are being thrown up. The easy … Read more