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 [title]

Title is the main label on a piece of information. In WP the term is mainly used to label a whole html page, a post, a widget or an attachment.

3
votes
0answers
17 views

Set Post Title to Read-only and Disable Permalink Slug Editor in Gutenberg

When using Gutenberg I would like to disable all users except administrator from being able to edit a post's title even though I want to allow them to edit the post, and I would like to disable the ...
0
votes
1answer
29 views

How to make a navigation that shows title on hover? [on hold]

Hello everyone I have a question I want to make a navigation in WordPress with a title if you hover your mouse over it then he shows the title
0
votes
1answer
34 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
1answer
16 views

Title tag come up differently on search results

When I Google our company's name I get a much shorter title tag then when I search for a keyword that we rank for. The correct title tag shows when I look for our company through keywords but not when ...
0
votes
0answers
16 views

Link of cpt error when I have duplicate post titles

I have a problem. when I have duplicate post titles: Post 1 titles "Story" link: https://domain.com/story-1.htlm Post 2 titles "Story" link: https://domain.com/story-1-2.htlm and cpt name "chap", ...
1
vote
1answer
35 views

Automatically add words if duplicate post titles

i have two post duplicate Post Titles: "Love Story". i want code Automatically add a random words if Duplicate Post Titles, like post 2 duplicate Titles ==> auto change post 2 titles like: "Love ...
0
votes
0answers
15 views

Unable to Change Title in WordPress Dashboard

I am unable to make any changes to my title tag. When I put the cursor on the Title place it automatically hides. I tried to change it through Yoast SEO plugin but still, it is not working. Kindly ...
0
votes
2answers
32 views

how can i remove page title on desktop view

i have a problem with my woocommerce, I cant remove the page title in the product on desktop view. Anyone know what can i do ? thank you very much store https://kingsport.ro
0
votes
0answers
15 views

Append custom fields to title and save in database

I am trying to achieve the following. We have the name of an artist in our title section of wordpress, let's say 'artist' war on drugs. With the ACF plugin we have created several custom fields, ...
0
votes
1answer
23 views

How to include a query_vars value in document_title_parts?

I have a page template, used on a single page, which takes URL string parameters like this... http://www.example.com/mypage?tags=Publishing Facilitated like this... // Inherit the meta target ...
0
votes
2answers
24 views

Print post title with markup

I have a piece of code that outputs my post title but how can I output it as an H4? Here is the code I have: <?php echo get_the_title( $post_id ); ?> Thanks
-1
votes
1answer
37 views

How do I remove the dash (-) between my Site Title and Tagline?

I want my site logo to look like the second image rather than the first. However, when I do the settings in the second image, the site is displayed as "Example - Site" in bookmarks and Google search ...
0
votes
0answers
13 views

How do you change the title of the Edit Post page?

When editing a post if I look at the title of the tab, it says: Edit Post < username -- WordPress When you've got a lot of tabs open that's not very useful. More useful would be something like: ...
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 ...
1
vote
1answer
23 views

How to set the seo title tag on a page by page basis?

I am storing the SEO title with advanced-custom-fields. How do i set the seo title tag within my single-mypost.php template. This is the place where i can call get_field('title_tag'); I tried ...
0
votes
0answers
11 views

Title attributes on Permalinks for posts and products

I need to add title attributes to my wordpress links for new posts, pages and products on a website. This is for the actual post/page/product and not within content. For example if I create a post/...
1
vote
1answer
19 views

Header style different on home and remaining pages

Would it be fairly simple to add different site header and menu styles and assign them to specific pages? I have very basic understanding of how CSS and php work and managed to customise the theme but ...
0
votes
3answers
39 views

How To capitalize The First Letter Of Every Word In The Post Title

Hello i wonder if you can help me. How do you make to post titles capitalize the first letter of every word? Is there a way to do it in wordpress?
0
votes
0answers
21 views

Custom archive paged head title

My website is in hebrew and when im in a paged archive the title is "archive title" page 2 of 4. How can i add the title only in archives that are in a page 2 or higher? I am using Yoast SEO. And its ...
0
votes
0answers
32 views

How to display custom seo title before the loop?

So I've optimized one of my archive page title to this add_filter('wpseo_title', 'new_filter_title'); function new_filter_title($title) { if ( is_page('1637') && $...
0
votes
1answer
35 views

remove the title attribute from links [closed]

I'm looking for a way to remove the title attribute from links. There is a old plugin but it breaks the site. The title I would like to remove is in the sidebar widget. Thats the code of the widget ...
0
votes
1answer
75 views

Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”

I want to change a meta-box title on the create question page from- "LearnDash Quiz Settings" to "Quiz Settings" on create question page. I have seen a few posts that explain changing custom posts ...
1
vote
1answer
20 views

Is possible add icon in title posts only in specific tag?

I want to add an icon in title posts only in posts with specific tag. Is this possible? I've already tried these codes, but they didn't solve my problem: Approach #1 if (is_tag('162')) { ...
0
votes
1answer
59 views

Set category page title in custom theme [closed]

I'm new in wordpress. I am using one custom theme and install in wordpress. I want to change category page title and remove "Category:" prefix from title. How can I manage it from admin ? I don't ...
0
votes
1answer
62 views

What is the wordpress page title php code?

I have a header file in WordPress theme which always shows site title after the creation of a new page because of code <?php echo esc_html( get_bloginfo( 'name' ) ); ?> but I want it to replace ...
0
votes
1answer
22 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
0answers
32 views

WP Query Args - Title or Taxonomy Value

How do I query by tax_value or title? I have $args = array( '_meta_or_title' => sanitize_text_field(preg_replace('/%20/', '+', $query[1])), 'posts_per_page' => 100, 'post_type' =&...
0
votes
0answers
22 views

How to add each letter, entity, special character from post title to array

I try to add each letter, entity, special character from post title to array but quote symbols not working. I use this function in the loop and single post page. Entities are in the numeric HTML ...
0
votes
1answer
20 views

How to Add or Change Post Title

How to add post titles with new titles via sql? example post title now "beddu". i want to adding/ change "Add beddu" thank before
1
vote
1answer
25 views

CPT Post Title Permalink: Replace “@” (or all special characters) with dash “-” instead of just removing

I have Custom Post Type "Email", where the Post Title is always going to be an email address, ie: example@domain.com The problem I am having is the "@" is being removed in the permalink: ../...
0
votes
1answer
296 views

How to get current page title inside a page itself in a shortcode and in page content

When i add the <?php the_title(); ?> to a page template file it works and is able to pull the page title inside html tags however if i wanted to add <?php the_title(); ?> to a ...
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
2answers
29 views

How to get current page title inside a page's template

I am trying to get the page title to show up inside various h1, h2 and p tags that i have part of the page template - so that when the template is applied to a page it will make the current page's ...
0
votes
0answers
21 views

Add id attribute to h1 element of wordpress post

The default rendering of the h1 element of a wordpress post looks like this: <h1 class="entry-title"> XYZ </h1> I would like to add the id attribute to the h1 element with the value of ...
0
votes
1answer
21 views

Get youtube link title in post title

If my post title is https://www.youtube.com/watch?v=PJmMiZH3Q6I I want it to be converted to original video title which is "Ras Cricket - Fyah" Is there a way without API stuff cause it seems hard.
0
votes
2answers
40 views

How to echo all the_title() without text after last “-”

I am trying to do something but I have problem... I wont show the list of my post, but from all titles I want remove text after last "-" (dash) My list of posts: My experience - this boy - ...
0
votes
1answer
239 views

woocommerce related product title length

Can't believe there is no standard workaround to limit product title for the related product section. So far, I managed to limit product title for all other pages by using Woo Title Limit plugin. By ...
0
votes
0answers
22 views

How to change the title of a woocommerce category / taxonomy page when a filter is applied

I am looking for a solution to come up with a new title for a category / taxonomy page when a filter is applied. Let's assume we have a webshop offering T-Shirts and we have a product attribute called ...
7
votes
3answers
824 views

Apply the_title() filter in post & page title, but not in menu title

I use the following code to change the title of WordPress posts and pages. But it changes nav menu item titles too, which I want to avoid. I want to change the title of posts and pages in: home page, ...
0
votes
1answer
150 views

How to make the first letter of a post title uppercase, in a plugin?

I'm making a plugin that makes the first letter of the first word in a post title uppercase, if it was lowercase. I'm a beginner, so it's simple, but even so I struggle! The plugin can be activated ...
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
28 views

Adding a title below the logo

I need to add a site title as a text below the logo for a site. The title should be <h2> tag. The theme allows either image or text, but not both.
0
votes
1answer
91 views

Change meta data of pdf file

I've noticed recently that pdf files provided by client have got indexed with weird and random title tags when searched for in google (site:mysite.com/path-to-file.pdf). Now I've tried to change it ...
0
votes
1answer
3k views

Remove “Category Archives: title” at the top of a category page [duplicate]

I created a category page that's linked to the main menu. It posts the categories fine, but it has the text "Category Archives:________" at the top of the page. Does anyone know to remove this. I'm ...
0
votes
2answers
37 views

Page Title Dependant On Input?

We recently implemented a stock quote system, where a user can enter a stock symbol and it will return all sorts of financial values. I have a template made up that displays the financial widgets, ...
0
votes
1answer
27 views

how to costume title single page

how to costume title single page on wordpress , for example in this picture , i want to change/add text "Theme Preview" ?
0
votes
0answers
98 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> <...
2
votes
2answers
100 views

Add Category name to Post Title (h1)

How to add Category name to post title (H1)? “PostTitle + CategoryName”? My h1 post title code: <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
0
votes
1answer
218 views

How come I get internal server error even with try catch for get_the_title in functions.php?

I'm relatively new to PHP & wordpress but not to programming. I wanted to have a title relative to the $post title, so I created the following filter and added it to functions.php: add_filter('...
0
votes
2answers
349 views

Can't change the title tag with wp_title filter

I'm using a theme child of Ultra Theme. This theme is using this : add_theme_support( 'title-tag' ); I'd like to customize the title tag of all posts & pages, here is my code : add_filter( '...