My post titles is getting mashed up with my blog title
Its documented.. heres a fix
Its documented.. heres a fix
Using get_the_title() will work for you: <h1><?php echo get_the_title(); ?></h1><span>YOUR CUSTOM CONTENT</span>
If you can pull the XML feed before the Title gets set then you could easily use information from the XML feed (and thus the H1) in the title. I guess you need to ask yourself these questions: Can I pull the XML before the title is processed? When creating the H1 are there any … Read more
The easy way is to look at the URLs of the posts (or the IDs) and determine what ones you’d like to delete. Then go to the all posts page and hover over the title of the post you’d like to delete, then click the red trash button.
Add Placeholder in WordPress Editor Content Box
Ok, I found the method by myself. This is the code: //… elseif (is_page() || is_single()) { //Page and Post Title global $post; $metatitle = get_post_meta($post->ID, ‘metatitle_value_key’, true); if ($metatitle) { echo stripslashes($metatitle); } else { the_title(); } } elseif (is_home()) { //Using is_home for the blog page //And using get_queried_object $page_object = get_queried_object(); $metatitle … Read more
I believe this forum post in the WordPress.org Support Forums will help. If you’d like me to research it more, I’ll update this post as I go… I hate telling someone to disable something without having a fix when it’s re-enabled.
Ok solved. <?php if ( is_front_page() && !is_home() ) :?> <h1><a href=”https://wordpress.stackexchange.com/questions/175971/<?php echo esc_url( home_url(“https://wordpress.stackexchange.com/” ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></a></h1> <?php elseif ( is_home() && get_option(‘page_for_posts’) ): ?> <h1><?php echo apply_filters(‘the_title’,get_page( get_option(‘page_for_posts’) )->post_title); ?></h1> <?php else : ?> <h1><a href=”<?php echo get_permalink() ?>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(”); ?></a></h1> <?php endif; ?> … Read more
Well, I never got any input on this and ended up going with the function sanitize_title which is more restrictive than I want (processes the title to be used in a URL — essentially returns a slug for the post), but it’s the best solution I’ve been able to find. By running both the 3rd-party … Read more
You can’t force Google to use your title, they may change it in their SERPs: […] we have algorithms that generate alternative titles […] Google’s generation of page titles and descriptions (or “snippets”) is completely automated and takes into account both the content of a page as well as references to it that appear on … Read more