trying to add custom landing page to Twenty Eleven- can’t get rid of Twenty Eleven header/container? [duplicate]

as you seem to be using a page template, you can edit this even more and directly integrate the essential header and footer code into that template; have a look at this example I recently made up: http://pastebin.com/ZiteZrUX <?php /** * Template Name: Blank Page Template * * @package WordPress * @subpackage Twenty_Eleven */ ?> … Read more

Background of default template showing instead of the background of custom page template

As I suspected, the issue is where/how you’re outputting your custom stylesheet. First, move this to functions.php: function mypage_head() { echo ‘<link rel=”stylesheet” type=”text/css” href=”‘.get_bloginfo(‘template_directory’).’/OldSkool-src/style.css”>’.”\n”; } add_action(‘wp_head’, ‘mypage_head’); Second, change the action into which you’re hooking your callback. You’re using wp_head. All other stylesheets will be using wp_print_styles. The wp_print_styles action fires inside of the … Read more

Recents posts pulling from different post type

This is an attempt to fix your sidebar code : <div id=”rightcolumn-wrapper”> <div class=”rightcolumn-inner”> <?php /* Widgetized sidebar */ if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar’) ) : ?> <?php /* If a title has been provided, we’ll use that. */ $NewsTitle=get_option(‘NewsTitle’); if ($NewsTitle) { echo ‘ <h3 class=”news”>’; echo $NewsTitle; echo ‘</h3>’; // Otherwise we’ll use … Read more

Get custom field from page, in a post?

I would suggest a different approach. The option for manually adding post excerpt should go in a theme option as opposed to a custom field. Also you should use this hook for modifying the excerpt’s more text http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_more If the user is supposed to enter custom excerpt on a per-post basis, they can do it … Read more

Tables not showing divs and loop/php items

In your page template line 42 you will see <?php if ( is_archive() || is_search() ) : //display excerpts for archives and search. ?> <?php the_excerpt(); ?> <?php else : ?> <?php the_content(‘Read More’); ?> <?php endif; ?> This means that there won’t be a heading on archive pages and the_excerpt doesn’t allow html like … Read more

Custom Post Type order Title ASC

$index = ‘A’; $terms = get_terms(‘manufacturer’); foreach ($terms as $term) { if($index != strtoupper(substr($term->name, 0, 1))) { $index = strtoupper(substr($term->name, 0, 1)); echo ‘<h1>’. $index . ‘</h1>’; } ?> <h2><?php echo $term->name; ?></h2> <?php $args = array( ‘post_type’ => ‘cars’, ‘posts_per_page’ => -1, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’, ‘tax_query’ => array( array( ‘taxonomy’ => … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)