Removing title tags from each page

You can open your theme files and remove the code that adds this to the page. The typical files to look in are: index.php, page.php, post.php, single.php. Look for this: <h2><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></h2> or it might look like this: <?php the_title(); ?> You might want to comment the part of code out … Read more

Posts created in a Custom Post Type are lost if published without a title

The function that’s in charge of saving posts on the database (wp_insert_post) requires at the minimum a title and content: http://codex.wordpress.org/Function_Reference/wp_insert_post Edit: I created a quick and dirty jquery solution. Input this in your functions file or in a plugin: <?php add_action(‘admin_head’, ‘post_title_check’); function post_title_check() { ?><script type=”text/javascript”> jQuery(document).ready(function($) { $(‘input[name=”save”]’).click(function() { if($(‘input[name=”post_title”]’).val() ===”) { … Read more

Where do I change the ACTUAL title tag that is set in the header.php

You can do one of two things. The first, recommended way would be to use a plugin like WordPress SEO. Install it, and replace the <title> tag in your header.php file with: <title><?php wp_title(”); ?></title> Or you can change the title only for the home page by using the is_front_page or is_home conditionals. <title> <?php … Read more

How to intercept Post Title on Post-Save

To set the title before it is saved, hook into wp_insert_post_data: add_filter( ‘wp_insert_post_data’, ‘wpse_75597_change_title’ ); function wpse_75597_change_title( $post_data ) { $post_data[‘post_title’] = ‘SOMETHING VERY LOUD’; return $post_data; }

How come my first blog post and my home page have the same title?

The “Reading Settings” at a domain’s wp-admin/options-reading.php is, by default, set to latest posts. So, WordPress, by default, would show the title of the post being set at “General Settings” at a domain’s wp-admin/options-general.php . In this case, Yoast’s WordPress SEO plugin would have form fields to customize it. When the “Reading Settings” are changed … Read more

Multiple Conditions for Child Page Title

Based on the comment exchange, here’s what I think you’re after: <h1><?php echo get_the_title( $post->post_parent ? $post->post_parent : $post->ID ) ?></h1> <?php if ( $list = wp_list_pages( “echo=0&child_of=$post->ID” ) ) : ?> <h2>Select a sub-page</h2> <ul> <?php echo $list ?> </ul> <?php elseif ( $post->parent ) : ?> <h2><?php the_title() ?></h2> <?php endif ?>

Change sidebar headers from H1?

The tags used for the headings would be set wherever the sidebars are registered. Look for register_sidebar() in the theme’s functions.php file (or a file that has been included into the functions file). It will look like this (example from here): register_sidebar( array( ‘name’ => __( ‘Main Sidebar’, ‘textdomain’ ), ‘id’ => ‘sidebar-1’, ‘description’ => … Read more

wp_title() handling of author page

I see my name in the title when viewing author pages. wp_title() runs this code during execution.. // If there’s an author if ( is_author() ) { $author = get_queried_object(); $title = $author->display_name; } Perhaps your author(s) don’t have a display name set? Additionally be sure to try disabling plugins that may be hooking a … Read more

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