How do I remove ‘Home’ from homepage title?

You can add a check to see if the current page is the home page, and if so skip adding the page title. This would make the final code look like this: <title><?php global $page, $paged; // Add the page title if not the front page if ( is_front_page() ) { wp_title( ‘|’, true, ‘right’ … Read more

Text under post title on frontpage but don’t want it in full post

Tested this and it worked perfectly on Genesis. You can also use HTML tags in the custom field. add_action( ‘genesis_entry_header’, ‘content_after_archive_title’, 15 ); function content_after_archive_title() { if ( is_home() && genesis_get_custom_field(‘after-title’) ) : echo ‘<div class=”after-title”>’. genesis_get_custom_field(‘after-title’) .'</div>’; endif; } Uses the native custom fields meta box which you can reposition under the Editor. You … Read more

Array to modify post titles

Your example code could easily be converted to an array, like this: Updated and improved code for your new example: function manipulate_post_title( $title, $post_id ) { $title_array = array( ‘1153’ => $title . ‘-suffix’, ‘2’ => ‘prefix-‘ . $title, ‘3’ => ‘completely different title’, ); if ( is_single() && isset( $title_array[ $post_id ] ) ) … Read more

Show post title words one by one [closed]

Create a function in functions.php to see if your title part is in an array of ‘banned’ words: function check_word( $word ) { $blacklist = array(‘the’, ‘it’, ‘and’, …); if ( !in_array( $word, $blacklist ) && strlen( $word ) > 3 ) { return $word; } else { return ”; } } Run your title … Read more

Need help with page title (Static front page)

The conditional tag is_front_page() is used to specifically check for a static front page, so you should be able to use that to switch between your title formats <title> <?php if(is_front_page()) { bloginfo(‘name’); } else { wp_title( ‘|’, true, ‘right’ ); }; ?> </title>

Wp Admin Bar Customizing Labels

Don’t use add_filter with the_content that way; that is meant for a different context – when you are filtering a returned WP post object. Try something like this instead: function replace_customer_area_title( $wp_admin_bar ) { $newtitle = __(‘Custom Title’, ‘cuar’); $wp_admin_bar->add_node( array( ‘id’ => ‘customer-area’, ‘title’ => $newtitle, ) ); } add_filter( ‘admin_bar_menu’, ‘replace_customer_area_title’ , 33 … Read more

How to disable publish button if post title exists

This is something you could always do with the help of jQuery Ajax, and get_page_by_title(‘About’, OBJECT, ‘post’) tool. You basically listen to changes on the title field, check if at least 1 post already exists with same title, then enable the submit button if it doesn’t, otherwise keep it disabled as it is by default … Read more

Modify link options when hovering over post title

If you want to just hide the link in the admin area, you can add this CSS code to your admin area. Assuming that the extra link is the LAST one in the row, add this code to you theme’s functions.php file: add_action(‘admin_head’, ‘my_custom_fonts’); function my_custom_fonts() { echo ‘<style>.row-actions span:last-child {display:none} </style>’; This will hide … Read more

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