Why doesn’t YoastSEO allow me to set the title/description for the home page? [closed]
Check Settings > Reading. If you have a Posts/Front page page set, you’ll need to add the meta title/description on those particular pages.
Check Settings > Reading. If you have a Posts/Front page page set, you’ll need to add the meta title/description on those particular pages.
Do you use a query to display results on each page? If you know the query arguments then you can do stuff based on the output. Let’s say ‘posts_per_page’ is set to 20. You can use found_posts to count how many posts there are, and show a title tag based on that info: $num_posts = … Read more
If you supply no title, WordPress will set the title to: (example) (no title) This will be shown in the list table for the post type in the admin area, within the database, the post_title value will be empty. As no title is supplied, WordPress will set the slug to: (example) 1234 …where 1234 is … Read more
To change the heading that appears in the body (message) of the email template you can use the following filter: ‘woocommerce_email_heading_’ . $this->id where $this->id equates to the id class property that is set within the email class of the specified type. For example, to change the heading of the “New Order” email you would … Read more
Can you check your wp-config.php and double check that you are using the correct database, as if you have changed the values within the wp_options table then they should definitely be reflected in the settings in the back-end of WordPress, whereas, updating from WordPress might not have been saving etc. Sounds like a strange issue … Read more
As per the discussion the_content is not a proper hook for filtering post titles while it filters the post content. wpautop() function is called with the_content so it adds the necessary paragraphs. To filter post titles use the_title instead, it won’t add any markup tags by default: echo apply_filters(‘the_title’, get_post_field(‘post_title’, $post_id));
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
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
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
First off all, $post is one of the WordPress core global variables and as such should either not be touched or reset after your foreach loop. Using setup_postdata() allows you to make use of template tags such as you are doing in the above snippet with the_title(). It, or the loop it is used in, … Read more