trying to add a author value in wp page links?

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

register_taxonomy for both ‘Post’ & ‘Page’

The second parameter of register_taxonomy can accept a string or an array of post types, so simply add the page post type to that array, like so: function qc22_build_taxonomies() { register_taxonomy( “fullscreen-tags”, array( “fullscreen”, “page” ), array( “hierarchical” => true, “label” => __( “Fullscreen Tags” ), “singular_label” => __( “Skill Type” ), “rewrite” => array(‘slug’ … Read more

Exclude child pages args array

There is not depth parameter for get_posts. See http://codex.wordpress.org/Template_Tags/get_posts You will need to check to see whether the page has a parent and display it if it does not have a parent. Once you are in the foreach loop add an if statement <?php if( !$post->parent ): ?> <li><a href=”https://wordpress.stackexchange.com/questions/26866/<?php the_permalink(); ?>” title=”<?php the_title(); ?>”> … Read more

How do I create pages within a WordPress post?

WordPress actually comes with pagination built in. I don’t believe there’s a button on the visual editor by default, but in HTML mode you should be able to insert <!–nextpage–> wherever you’d like a page break and it will work. Styling the pagination links would likely be the next step after that: http://codex.wordpress.org/Styling_Page-Links

$page = get_page_by_title CONTAINS

You should build a query using the WordPress database class. Place this in your functions.php file function get_page_by_title_search($string){ global $wpdb; $title = esc_sql($string); if(!$title) return; $page = $wpdb->get_results(” SELECT * FROM $wpdb->posts WHERE post_title LIKE ‘%$title%’ AND post_type=”page” AND post_status=”publish” LIMIT 1 “); return $page; } Use this in your theme: $page = get_page_by_title_search(‘Foo Bar’); … Read more