WordPress – Retrieve a Page if it’s a direct descendant of another Page
have a look at: get_page_by_path() codex.wordpress.org/Function_Reference/get_page_by_path
have a look at: get_page_by_path() codex.wordpress.org/Function_Reference/get_page_by_path
Yes you’d need to add shortcodes to the functions.php file in your themes folder in order to use code like [box]Contained content blah blah[/box] in the WYSIWYG editor learn more about shortcodes and how to use them here http://codex.wordpress.org/Shortcode_API
Try searching the WPORG Theme Repository for a Theme updated sometime since Fall 2010 or so. The Theme Review Guidelines require that Pages not display time-related content (such as Post Date/Time stamp), and that Pages not display “comments are closed” type messages on Pages with comments disabled. The Son of Blue Theme was last updated … Read more
The only way I could figure it out was to build a list of ID’s to exclude like this: /* * Hide some pages from search results */ function SearchFilter($query) { if ($query->is_search) { $exclude=”18,20,12,22,132,76,81,78,84,91″; // Get all children of #18 $pages = get_pages(‘post_parent=18’); foreach($pages as $child) { $exclude .= “,” . $child->ID; } $query->set(‘post__not_in’, … Read more
I think you would need to implode(‘,’,$excluded_pages) for things to work, $excluded_pages = array(); $all_pages = get_pages(); foreach ( $all_pages as $the_page ) { if ( ” == $the_page->post_content ) { $excluded_pages[] = $the_page->ID; } } wp_list_pages( array( ‘exclude’ => implode(‘,’,$excluded_pages) ) ); EDIT
Uhm, nice question. Some hacking is required. Use pretty-permalinks on company site On the domain of the founder, do a URL-rewrite from http://www.founder-domain1.com to http://www.companysite.com/page-founder1 On the company site, use a custom menu with a custom URL: Founder Page -> http://www.founder-domain1.com. (If you cannot use a custom menu, create a link in your template) Of … Read more
You could also use wp_list_pages() (Codex ref): <?php $has_pages = wp_list_pages( array( ‘echo’ => false ) ); if ( $has_pages ) { // There are pages; do something } ?>
Take a look at Members List Plugin The Members Plugin allows you to create a post on your wordpress blog that lists all your wordpress members. When viewing the list of members you can also search through your members according to first name, last name, email address, URL or any other number of user meta … Read more
Hmm, given that it’s okay to send the visitor to an entirely different site, but you are trying to get it to show up as a page, I would suggest adding it to a menu. You are probably already aware, but when you are modifying menus (Appearance > Menus) there is a box on the … Read more
You check for <!–pageauthor:, but you expect it to start on the second character (1 === $has_part_title2) (you even have a typo there and left the 2 off). This will not work, because <!–pagetitle: is still part of that string (you don’t chop it off). You should either chop it off (do a substring in … Read more