How to list all titles of posts on a specific page?

Paste this into your page template. It will output a list of all posts (without pagination). <?php // the query $all_posts = new WP_Query( array( ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1 ) ); if ( $all_posts->have_posts() ) : ?> <ul> <?php while ( $all_posts->have_posts() ) : $all_posts->the_post(); ?> <li><a href=”https://wordpress.stackexchange.com/questions/240419/<?php the_permalink(); ?>”><?php … Read more

Change the output of wp_title()

Take a look in header.php of your theme. Some themes have the title output like this: <title><?php wp_title(‘|’, true, ‘right’); ?> | <?php echo get_bloginfo(‘name’) ?></title> So you’ll have to remove the | <?php echo get_bloginfo(‘name’) ?> part. However you should keep the title of the site in the <title> for SEO purposes.

How can i remove JUST the title tag from wp_head() function?

You can see everything added to wp_head in the file /wp-includes/default-filters.php. If your theme supports the title tag, you can remove it entirely with remove_action: remove_action( ‘wp_head’, ‘_wp_render_title_tag’, 1 ); Though it may be simpler/better to use remove_theme_support( ‘title-tag’ ) in a child theme, which is what _wp_render_title_tag checks before outputting the title tag.

WordPress page title repeated in SOME pages

In order to play nicely with Plugins or other code that attempts to modify the HTML document title content (i.e. wp_title() output), you should always and only output this: <title><?php wp_title( ” ); ?></title> …and if you want to modify that output yourself, filter wp_title instead of hard-coding anything inside the <title></title> tags. So for … Read more

Add specific word before the category page title

Since WP 4.4 you can change document title using document_title_parts filter hook, in earlier versions it will be wp_title_parts (since v4.0) or wp_title filter. add_filter( ‘document_title_parts’, ‘se333744_site_title’ ); function se333744_site_title( $title ) { if ( isset($title[‘title’]) && strlen($title[‘title’]) && !is_front_page() && is_archive() ) $title[‘title’] = ‘ {some prefix} ‘ . $title[‘title’]; return $title; }

Include category title in wp_title

Create a helper function to get all parent categories (each post can be in multiple categories): function parent_cat_names( $sep = ‘|’ ) { if ( ! is_single() or array() === $categories = get_the_category() ) return ”; $parents = array (); foreach ( $categories as $category ) { $parent = end( get_ancestors( $category->term_id, ‘category’ ) ); … Read more

REQUIRED: The theme must not used the tags. | REQUIRED: The theme must not call to wp_title()

WordPress added support for the title-tag feature in version 4.1 and it’s now a required feature for themes uploaded to the repo. To implement this feature, make sure your theme does not have the title tag hard coded within header.php, e.g.: <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title> Configure your theme with title-tag support like … Read more