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.

0
votes
1answer
15 views

Run a function on all posts

I have a function where I am counting letters in a title and adding that _product_meta_title key, everything is working fine when I am adding a new product but I have 500 products that don't have this ...
1
vote
1answer
39 views

Dynamically update post title in admin page

I have a textarea in admin post page when creating new post, that's title: <textarea id="post-title-0" class="editor-post-title__input" placeholder="Add title" rows="1" style="overflow: hidden; ...
0
votes
0answers
19 views

Post title value with colon causing search issues

Hoping someone can help shed some light here... I have the following titles: Icons & Innovators: Norman Lear Muslim/American: Halal 44 Charlton: Pride I am using the native WP search. The ...
0
votes
0answers
9 views

Page title auto defaults to V3

The problem: When I create a new WordPress page or edit a page the page title auto defaults to "v3". If I change the title and then move to edit the permalink it reverses itself back to v3. Here's a ...
0
votes
0answers
17 views

Need to replace some text string on a title

we are using Bridge theme in Wordpress as a basis for a restaurant menu. This menu has titles of food that in the plugin template (restaurant-menu-list-item.php) are called to be printed on the screen ...
0
votes
1answer
41 views

Create/Set Category as Title of Post

I am fairly new to PHP. I wanted a code snippet to create post category from the post title. If the post title does exists as a category, then assign the post to that category. If the category doesn't ...
3
votes
2answers
80 views

Don't replace “|” with Empty String (“”) when generating slugs from title

I work for an architecture company and our project names mostly go like this: house|something, bridge|somewhere, building|whatever. Now, when I want to add a new project named like that, WordPress ...
0
votes
2answers
24 views

How to add publish date in the title

I learned a solution from https://stackoverflow.com/questions/36671203/wordpress-publish-date-shortcode Although it can show the publish in the title, in the source code, it still shows the shortcode ...
1
vote
0answers
44 views

Get all posts with a duplicate name

I am running an import script which adds a large number of product post types. Some of these are identical apart from perhaps a size or colour value in the CSV. My script creates the new post types (...
-1
votes
2answers
39 views

How to add … after a particular word/character limit to the title

I am working on a php code as shown below: <div class="case-breaking__content"> <p><?php echo the_title(); ?></p> </div> The above php code returns the ...
0
votes
2answers
32 views

Why in my query is display two title?

I have a quite specific problem, I created a query that currently has to display the first post differently from the rest and everything seemed to work, but there is a problem that displays the title ...
0
votes
0answers
39 views

Remove and replace the “Category: from the_archive_title with custom text

My question has been partially answered here but what I am trying to do is replace the 'Category: Word' in the page title with other text. So, my question, unlike the one asked previously, is - how ...
0
votes
0answers
27 views

How to filter page title for certain page?

I have saved in DB in options an ID of certain page. I wanna use that ID to filter corresponding page title and add a postfix in pages overview as follow. So for example to add postfix "- My Chosen ...
0
votes
1answer
25 views

How can I override the post title when a post is set to sticky? [closed]

I want to display my selected post as top post which will appear in the top of my post list. I use sticky post for this, but there is a problem in the sticky post option. It shows selected post at the ...
0
votes
0answers
11 views

hpw to remove add title from the new-post.php [duplicate]

i want to remove the add tittle from add new post. user can able to add only content, kindly help me on the same. Thanks in advance.
0
votes
0answers
34 views

Remove title bar from post-new.php

I want to remove post title bar form the admin area. So that the users can't add title. Users will be able to add description only. How can I do this?
0
votes
1answer
27 views

Update all WordPress posts's title and content then display them in a table

I am trying to update all the WP post title and content then show the just updated post to a table. I am using the following code but it does not work: $args = array( 'post_type' => 'post', '...
0
votes
0answers
16 views

Remove Page from title with custom query rewrite

I have a custom query rewrite to accept a numerical parameter (mywp.com/foo/bar/1746). My issue is that the title of the page displays as "MyWP - Page 1746 - Page". Is it possible to change the title ...
0
votes
0answers
15 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
45 views

change title page on search result

I want to change in my search result the title. Unfortunately I don't have option to change this in , because I must do it in plugin file. Actually I have that code in PHP file: if (isset($_GET['...
0
votes
1answer
34 views

Loop doesn't show title of second post and posts thereafter

I have a problem with my code, somehow. It worked fine before and now it seems that Wordpress does not show the title of the second blog posts (only the first blog post seems to work fine really, ...
1
vote
2answers
48 views

Wrap h1-h6 in a div

So, I am using heading tags h1-h6 on my site in various places, what I'd like to do is put a div around those tags using a WP function. Right now I am using some jQuery to get the job done, but I'm ...
0
votes
1answer
49 views

How to remove Nav-Menu tooltips? (Wp-Globus plugin)

I would like to remove all tooltips from my nav-menu, as it cannot detect in which language the title is. I used Wp-Globus plugin for a multi-language site and this issue came after creating the sites ...
0
votes
1answer
24 views

Site title not showing. Please help me

Please help me, My WordPress site's title not showing. It's just displaying the domain like, www.example.com. site: https://happyygarden.com Please check my site code and suggest how to display the ...
0
votes
0answers
8 views

Buddypress profile fields don't get exported

How can i export buddypress extended profile's titles? When i export buddypress's extended fields, it seems like wordpress is just exporting input names without their parent titles. As you can see ...
0
votes
0answers
22 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 ...
-1
votes
1answer
21 views

Auto append text after the title?

Original Title -> Original Title - Lorem ipsum How can I do this with hard code? I want this to stop people that web scrape my web without giving credit and making money off my posts from their ads ...
1
vote
1answer
55 views

Remove the first 5 characters of the_title and orderby that

I have a custom post type where all titles are dates (in this format: YYYY-MM-DD). I need to order them by month then day, but not at all by year. So I imagine I need a filter to 'look' 5 characters ...
0
votes
2answers
23 views

Delete page titles

I'm making a website with the Primer theme, and it includes a big bar with the title in huge letters across every page. I prefer the titles be in the body of the post, so I want to delete the title ...
0
votes
2answers
35 views

How to automatically load an image inside the post, since it is present in uploads folder

I´d like to automatically load three images inside all posts (via single.php), always in the same div (.acf_imgs-centro1). The idea is that the images are uploaded into uploads folder, with the same ...
3
votes
2answers
281 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
40 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
23 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
24 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
37 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
34 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
19 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
42 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
25 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
165 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
84 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
16 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
22 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
128 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
27 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
76 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
52 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 ...