Content not showing up when using custom template + sidebar

the problem is you never call the content!!! change your dashboard.php to something like this <?php /* Template Name: User Dashboard */ ?> <?php get_header(); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div id=”content” role=”main”> <?php the_content(); ?> </div><!– #content –> <?php endwhile; else: ?> <p><?php _e(‘Sorry, no … Read more

page template – undefined structure in source code

Search all your theme and plugin files for: <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” Disable all plugins and re-enable them step by step. This document type declaration is not part of WordPress’ core files; there is a filter active somewhere. Update Try to remove all filters from the affected functions. Start with wp_list_pages(): remove_all_filters( … Read more

Hide Overflow on a Specific WordPress Template

This: html .page-template-showreel-php { overflow: hidden; } …will target body.page-template-showreel-php. So, two questions: Do you have the <?php body_class(); ?> template tag inside of the <body> HTML tag? Is hiding overflow on the <body> tag really what you’re after, or do you need to target a descendant element? EDIT There is no semantic or programmatic … Read more

custom page templating in WordPress

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

Unable to use get_page_by_title() more than once per page?

get_page_by_title returns an id not content. here is an example of what I use to get content from a certain page id. call the function $page_id = get_page_by_title(‘title’); $excerpt = get_excerpt_by_id($page_id); in functions.php function get_excerpt_by_id($post_id) { global $wpdb; $query = “SELECT post_content FROM $wpdb->posts WHERE ID = $post_id LIMIT 1”; $result = $wpdb->get_results($query, ARRAY_A); return … Read more