Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [wp-title]

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

0
votes
0answers
22 views

how to get wp_query posts only first letter of alphabet A?

I want to get all the data by wp_query only the first letter of title specific alphabet 'A'. My code will be like: $the_query = new WP_Query( array( 'posts_per_page'=>10, ...
0
votes
0answers
13 views

Add QueryString into Title Tag of the search page to make Title Tag dynamic

I have a search page https://myweeeebsiteee.com/search-results/?cat_id=1&ad_title=cat I want the ad_title value to add into page title tag, So the title tag will be dynamic for each search query....
0
votes
1answer
32 views

Add specific word before the category page title

in my site category page (archive page), the page title in browser is like this: My site | Site Description | Category title How i can add specific word befor all of category title. like: My site | ...
0
votes
0answers
21 views

long-title posts do not want published

long title posts do not want published, when I click on published (not function) always on draft. For example: The title 'Le général sorti un badge et se dirigea vers l’une des portes entourées de ...
0
votes
1answer
39 views

disallow publish posts with special title

I want to disallow some titles on wordpress and avoid publishing these posts. example : "title : last news 8 hours ago" When this sentence is in the post title, I want disallow publish the post. ...
0
votes
0answers
29 views

How to get page title (<title></title>) in a different order?

I am trying to figure out, how to change the current order of the page title (displayed on the tab or browser windows). Currently, it is <page_title> - <site_title>. The site title is ...
3
votes
1answer
48 views

How to insert the number of posts from the category in wp _title?

For example, the site has a category "News", in which there are 37 posts num. How to insert into wp_title the number of records (37) in this category. those, if we go to the "News" category, the ...
0
votes
1answer
28 views

Display last updated in <title>

I am new to WP so the issue is the following: I want to display the Month's name of the last updated date of my post in title tag. How can I do this?
0
votes
1answer
25 views

Please I want to prefix my WP posts title according to each category

What i mean is that. My categories are: Music. Video Etc... So i want post title per category to be like this. Post in music = should be "Download Music: wp_title()" Post in video = should be "...
1
vote
1answer
40 views

How to Change The Title in WordPress For SEO

My concern is when I search for that company I see what is shown in the image. Instead of Home, I require it to show a custom title that is good for SEO. What is the best way to fix this? Please ...
0
votes
3answers
82 views

How to add custom filed value after in wp post title

(WP Post Title)Malwarebytes Anti-Malware (Custom field value)3.5.1.2522 How to add custome meta value in wordpress after wp post title in same hyperlink
-2
votes
1answer
51 views

Adding a custom field after post title (ex.Example Title [30 Second Read])

function wpd_title_prefix_filter( $title, $post_id ) { if( $checked = get_post_meta( $post_id, '_wpd_title_prefix', true ) ){ $title = '[30 Second Read]: ' . $title; } return $...
1
vote
0answers
26 views

How to remove main domain header title from after sub domain header title

I have installed WordPress on the main dame in public HTML and have installed all domains in the sub folder. But when we do Google, the title of the main domain comes in the title of all the domains. ...
0
votes
0answers
26 views

Set page title in WordPress with PHP

I know this question has been asked thousands of times before, but I have attempted a lots of these solutions without any success. Attempted solutions, among others (added to the template page) ...
1
vote
1answer
68 views

Events Made Easy Plugin - Duplicate Title Tags

I use the Events Made Easy plugin to handle events for a client. Recently while scanning my site for issues, I noticed that I'm getting blasted with duplicate title tags in the "events" pages as they ...
0
votes
0answers
107 views

Reorder title tag and description tag with wpseo_title and wpseo_metadesc

I'm trying to change the order of the title tag and description tag (CMS Wordpress, plugin Yoast SEO). Now in the code of the page it looks like this: <title>something ...</title> <...
0
votes
1answer
49 views

HTML regex convert to titlecase

I have a plugin with an option to use regular expression and find and replace the title post. I need to convert lots of titles with uppercase and lowcase letters to title case, but I have no idea ...
2
votes
0answers
284 views

Search query - exact post title match

I have a bunch of posts titled something like this... English Language 2015 English Language 2016 English Language 2017 English Language 2018 And on each one of these posts I have a dropdown select ...
0
votes
0answers
21 views

Add warning error if post title exists

I see code in this https://wordpress.stackexchange.com/a/250623/144156, it working. But i want to add echo a warning text error like "Enter title before publish" if empty title, and a text "A post ...
0
votes
1answer
21 views

tweaking the <title>

so I wanted to change the <title> head element and found this post: Change the_title() of a page dynamically I followed and my function now looks like this: # set title per page function ...
0
votes
1answer
16 views

How to place POST TITLE any location inside the posts page

I am editing the single.php file, and I want post title to appear inside a particular div. Since my theme doesnt show the post title, I want to retrieve the post title on posted article page. " > &...
0
votes
1answer
41 views

How do I fix title? [closed]

my title appears as home-title, I'm trying to remove but it's not working code in header.php is <head> <title><?php wp_title('|', true, 'right'); ?></title> <meta ...
1
vote
2answers
140 views

Replace category titles

I want to display different titles in category archives than the category title. I have created a function with if statements for this purpose: function category_titles_change() { if (...
0
votes
2answers
40 views

I have dynamic title tag in my wordpress but seo analyst show “No title Tag found error”?

<title> <?php if ( is_single() ) { single_post_title('', true); } else { bloginfo('name'); echo " - "; bloginfo('description'); } ?> </title> ...
0
votes
1answer
44 views

Use WP Title instead of custom field to call

Someone helped accomplish this code last week which works perfectly, it pulls keywords entered into a custom field ( advanced custom fields ) into the middle of a URL and then redirects them. Code ...
0
votes
1answer
331 views

change title separator

tell me how permanent the links to change the splitter from vertical to horizontal of the main page write website. | — http://joxi.ru/a2XlxQXcyeKPj2 The name of the site | short name The name of the ...
0
votes
2answers
36 views

Hiding title of selected post without plugins

I'm using the Enigma theme in my webpage and I want to hide the title of some posts without using any plugins. Every tutorial I find on the internet teaches me how to do it in a incompatible way for ...
0
votes
2answers
393 views

How to change the page title from functions.php

I have an ACF custom field that depends on the value I need to change the page title, however, I cannot affect the page title, it appears my code is running after the page title is generated. To ...
0
votes
1answer
93 views

get_the_archive_title hook unwanted changes!

I use get_the_archive_title hook to add a link to my blog tags and categories archives pages. https://developer.wordpress.org/reference/hooks/get_the_archive_title/ I just get the title and filter ...
0
votes
1answer
107 views

How to remove a specific string from inside the <title> tag of a Wordpress Page

I have some Pages that have a specific string in their Title, e.g. "ASDF". I want to remove this specific string from ever appearing inside the <title> tag on the HTML generated by my theme. ...
1
vote
1answer
96 views

Can not set custom title on some WordPress setups

I'm having a bit of an issue changing the title on a custom page. Most the time the standard code works, but for whatever reason on certain WordPress setups I am unable to change the default title. ...
0
votes
1answer
772 views

how to customize the page title of a custom php file

I'm creating a custom php/js pages querying and displaying results from a separate non-wordpress DB on a 2nd page. The header and footer will be the same as my theme so I'm calling the theme's footer ...
0
votes
2answers
568 views

How to set custom title of custom page template?

How to set custom title of custom page template? I try use wp_title filter but it's not working.
0
votes
1answer
313 views

Site Title and Tag Line(Both are) Show on my Meta Title/ Site Title

In my wordpress website Site title and Tag line (Both are) shown on the place of title tag. I want to show only title tag. What can i do now. Please help me. Please check the picture: Please check ...
0
votes
2answers
373 views

add_theme_support( 'title_tag' ) is not showing title on index.php

i'm developing a theme. I read there that themes should have the support to title tags declaring it in functions.php. I did so, together with removing any title in head.php, but my index has no title. ...
1
vote
0answers
4k views

wp_title() function in <title> tag

I have used the following code in functions.php to retrieve the title of my WordPress Theme which is being got ready for Themeforest release. add_theme_support( 'title-tag' ); And then I have used ...
3
votes
1answer
2k views

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

I am getting these three warnings while running the theme-check plugin. REQUIRED: The theme must not used the <title> tags. REQUIRED: The theme must not call to wp_title(). REQUIRED:...
1
vote
1answer
260 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
2k 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
402 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
742 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 ...
0
votes
0answers
375 views

how to change page title dynamically in wordpress according to url value

How Can i change current page title dynamically in wordpress according to url value, like if i visit http://example.com/city_name then in page source page title will be displayed "Delhi - Site Name" ...
5
votes
2answers
7k 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
52 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,...
1
vote
1answer
11k 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
937 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
88 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
548 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 ?
0
votes
1answer
2k 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
89 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['...