Questions tagged [wp-title]

Display or retrieve page title for all areas of an installation or a site of a multisite or network install.

Filter by
Sorted by
Tagged with
1
vote
1answer
333 views

Get wp_title wp ajax

I am attempting to get the result of wp_title for a specific url. I am doing this to form an ajax responce when a page is requested. I have read several responces (e.g. Get wp_title() from page ID ...
0
votes
2answers
3k views

Where does Yoast SEO plugin sets the site/page title?

I am running on WP 4.7.2 and Yoast SEO 4.4. I want to append a PHP variable to all titles. But it seems I am not able to do that. I have read that wp_title used to be the method before WP 4.4, then ...
0
votes
1answer
665 views

“Page Array” displaying in title bar on Front Page

The issue is that the text "Page Array" is displaying in the title bar instead of what was previously there, which was just a "|" separator. I'm trying to puzzle out why this issue appeared...it came ...
0
votes
1answer
1k views

Modify title of custom taxonomy archive page

I have a custom post type 'question' and taxonomy 'question_tag'using Anspress plugin. When visiting a tag page the title is "Example Tag". Desired result: "Questions on Example Tag". How could I ...
5
votes
2answers
13k views

Changing title of a page dynamically from within a plugin

Every WordPress page can be described as having two titles: The page/post title, which is displayed within the page/post via the the_title() function call The html <title></title> tag ...
0
votes
1answer
62 views

What change does this code need to include title of parent?

I'm using a function to add conditional titles to the header of the html; example below. add_filter('document_title_parts', 'change_wp_title', 20, 1); function change_wp_title($title) { global $post,...
2
votes
1answer
15k views

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

i'm using wordpress 4.6 i'd like to remove just the title tag automatically outputted by wordpress because need to hardcode the html title tag in the template. i guess is something like this: ...
1
vote
2answers
2k views

Change all Post titles into [Title Case] format

I have about 2000 post with the titles in the following format: [i like apples] I want make them: [I Like Apples] I used the WP Title Case plugin, but the problem is that this plugin is only ...
0
votes
2answers
128 views

How can I use a specific wordpress page template if certain words are used in page title [closed]

I'm creating a wordpress theme for a client to use in his existent wordpress site. Anyways, I've completed the theme except one specific thing. I see that he has lots of pages with the keyword Module ...
-4
votes
2answers
941 views

WP Title only in lowercase letters [duplicate]

how to get <?php wp_title(''); ?> only in lowercase letters ? I tried a lot but cant get it ! Perhaps one of you can tell me how to proceed ?
2
votes
1answer
3k views

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

How to list all titles of posts on a specific page? I like to show my titles of posts on a specific page. It is more effective to get know what author have written than scroll all pages or navigate ...
1
vote
0answers
110 views

Change page title dynamically before header is rendered

Hi I am trying to change the page title prior to wp_head being rendered: $pdf_link = plugin_dir_url(__FILE__) . 'pdf/generate_pdf.php?type=single&event_id=' . $id . '&uid=' . $_GET['...
0
votes
1answer
2k views

Remove dash from blog title wordpress

Hi this is my first time using wordpress and php, I created a static page for my front page of the site, and got my news on a separate section, I'm just wondering how do i remove the the dash from the ...
0
votes
1answer
664 views

How to remove page title from wp head on specific page?

I'm trying to remove page title from a template. Actually I'm using custom in title for singledigital.php template, and wp_head also adding page title on this page. So i want to remove it. I have ...
0
votes
2answers
719 views

How to set page title tag in custom template for non-Custom Post Type?

I have this code in my custom template file: <?php /* Template Name: custom-template-view */ ob_start(); get_header(); function assignPageTitle(){ return "my page title"; } add_filter('wp_title'...
1
vote
2answers
156 views

wp_title() shows 404 - installation outside WP

wp_title() from theme's header.php shows "Page not found". Also the body_class displays the word "error404". the WP blog is installed on site.com/blog/ a post is rendered outside WP installation, ...
0
votes
1answer
446 views

How to modify title tag in a plugin?

I would like to add a meta value to the title <title> tag in a custom post typed page. So there would be meta value before normal post title. I have a custom field created that contains the ...
2
votes
0answers
540 views

Custom WP TItle from custom template with dynamic URL structure

I am new to custom WP development, but I have made a custom plugin. With a custom rewrite I have made the following URL structure: /profile/[company_name]/ I have made a new post Profile with a ...
0
votes
1answer
230 views

Split post title for styling

I need to split up post title and want customize both strings, For example post title is This x That I need to display this title as This xThat. Is there any way to display like that?
0
votes
1answer
202 views

wordpress filtering out caps in wp_title? (UpperCase is changed to Uppercase)

Have been working with WP for years, but never noticed this until today: I have just launched a new site for a customer, and they write their name like this: "ClientName" (with one letter capitalized ...
0
votes
1answer
70 views

What could be causing the category to be appearing as the post title in the title tag?

As the title of the questions states, I have this site where in the title tags, the category is appearing as the post title, which is killing my client's SEO, of course. I've disabled all plugins that ...
0
votes
1answer
395 views

Modify page title and subtitle with a plugin

How can I build a plugin which will modify a title (header) of the page? I built one generic page which uses shortcodes to display relevant information based on url parameters, but I can't use ...
0
votes
2answers
1k views

Add PHP code after title in single post pages?

I tried to add PHP code after the post title in single post pages by adding a filter to functions.php, but this did not work: function theme_slug_filter_the_content( $content ) { $custom_content =...
0
votes
1answer
441 views

my site show this symbol (::) between site title and tagline

i have a web site with a problem in a tag "<title>" , i see between site title and tagline this character (::) in home page and only one (:) in other page, in my header.php theme i have this : ...
0
votes
2answers
2k views

Site name not showing in browser bar, only url

Sorry for this question, but I can't work out why my site name isn't showing in the browser window even though I have wp_title() in the <head>. All I have done is used CSS to indent the text -...
6
votes
2answers
15k views

How to change the seperator in the title

Change title separator. I'm working with the underscores starter theme. I want to make a small change to the title. Change the separator from "Post title | site name" to "Post title - site name" ...
0
votes
2answers
1k views

The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output

I am submitting my theme to WordPress.org. To make it compatible with WordPress 4.1 and greater, I replaced wptitle() tag with add_theme_support( 'title-tag' ) but now the error has changed to ...
0
votes
1answer
549 views

Display tab title as 'blog tagline | blog title'

I am currently displaying my title liek this <?php wp_title( '|', true, 'right' ); ?> it works fine for every page besides home page where tab currently says Blog title | Blog tagline is there a ...
0
votes
1answer
744 views

double page title [duplicate]

I have my page title on the home 'My siteMy site'. and other pages as 'Page title | My siteMy site'. I have checked in the header.php file for my theme and it look okay <title><?php wp_title(...
0
votes
1answer
1k views

Modifying WP_Title For Custom Post Type

Trying to modify the output of the WP_Title through a custom post type with a filter. I've had no issues doing it to the_title but I assume as the wp_title function is called through the header it's ...
0
votes
1answer
4k views

Replace text in the Title

In a string displayed by <?php the_title(); ?> I have to replace all & characters with and. Here is the code I've tried without success: <?php $wptitle = the_title(); $wptitle = ...
0
votes
2answers
3k views

How to modify a title tag in genesis?

I need to modify the outputted <title></title> tag of a few specific templates, and it has to be done in php so I can dynamically generate content for it. I've been playing around with ...
-1
votes
2answers
958 views

error in wp_title on year archive - undefined index 00

In the year archive page in the title tag i get Notice: Undefined index: 00 in wp-includes\locale.php on line 271 In the header.php i use: <title><?php wp_title('|', true, 'right'); ?>&...
0
votes
0answers
67 views

The title of an attachment is not working

I use this function to assign the title of every page: function my_title() { switch ( true ) { // [...] case (is_attachment()): wp_title(''); // This doesn't work ...
1
vote
1answer
6k views

Page title not showing up

I have this in my header.php file -> <title><?php is_front_page() ? bloginfo('description') : wp_title(''); ?> - <?php bloginfo('name'); ?></title> This shows title in my ...
1
vote
4answers
19k views

Displaying Page Title on index.php

I have my posts page set as index.php, and on there I have my main heading (as I do on all pages). I'm having trouble displaying the page's heading however. The page is called 'Blog' in WordPress, ...
0
votes
1answer
42 views

How to add WordPress Settings in sidebar widgets

Is it possible to insert the Site Title in a widget text box? I tried <?php wp_title(); ?> but nothing displayed.
-1
votes
3answers
2k views

Show page name in browser

I am developing my first WP theme and would like to know how to display page name for every page/post instead of just "mysiteaddress.com" How can I set that all my posts and pages show the tittle by ...
0
votes
2answers
800 views

Need help with page title (Static front page)

I need some help with the code to put inside the <title> to generate the following: Static front page: Should just be the bloginfo('name') All other pages: Should be wp_title() | bloginfo('name'...
0
votes
2answers
4k views

Set title of page using custom page template

Most of the related questions are still unanswered or have very little information. I have a custom theme for my website and use WordPress SEO for titles. All the article pages work fine, except for ...
0
votes
2answers
67 views

Keep Title and Description always

I want to keep the title and description of wordpress blog like this: Title | Description (showed in a tab of navigator). And I don't want to change his name while I am surfing the site. I think that ...
0
votes
2answers
421 views

Hide page name in wordpress page title

In my pages title I got for example "home-my title' and 'Books Archieves- my title', I want to drop those prefixes so I have only on page (home) 'My title' and on archive(category) 'Books- my ...
0
votes
0answers
403 views

template_redirect and title

I pass a template_redirect in wordpress as hook but I want to have a personnalized title for this page and I miss to do that. Has someone any idea ? add_action( 'template_redirect', 'virtual_pages' );...
0
votes
1answer
220 views

How to show page title in blog post of wordpress site

I want to show the page title in single post page of wordpress theme. I tried to use <?php echo get_the_title() ?> but it returns the post title, not the page title. basically I want to show my ...
-1
votes
2answers
597 views

Title displaying multiple times

I'm facing a problem where my title is being displayed multiple times. Using the following code the page title 'News' is displayed 10 times, the same number as the number of posts I've elected to ...
0
votes
2answers
39 views

Automated Footer information

Working on a theme and I'd like the copyright and title texts on the footer to be automated. It works but the tittle switches to the current page instead of the website's main title when you switch ...
0
votes
1answer
2k views

How do I get rid of the vertical bar in the url

I was wondering how to get rid from the vertical bar in the browser url, see image. I thought it was wp_title and set it too false like: <?php wp_title(false); ?> but doesn't work. How can I ...
2
votes
3answers
5k views

Change the output of wp_title()

I use wp_title to generate some kind of breadcrumb and it works well, but in there I have the title of the site, and I want to delete that. It looks like this: Taxonomy1: City | Title of the site. I ...
-1
votes
1answer
105 views

Filtering wp_title() in WordPress

I am using this in header file of my site. <title><?php wp_title( '|', true, 'right' ); ?></title> But it is displays '|' at the end of title on all the pages of site like this &...
0
votes
1answer
3k views

Remove Site Name from wp_title WITHOUT removing from <title> attribute

I'm using wp_title() in the body of my theme to print out the page title name at the top of the page, way before the content. This unfortunately also prints out the site name, which is redundant in ...