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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
196 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: [email protected] The problem I am having is the "@" is being removed in the permalink: ../...
codeview's user avatar
  • 455
4 votes
1 answer
26k 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 ...
sn22's user avatar
  • 43
1 vote
1 answer
144 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 ...
karthik's user avatar
  • 11
0 votes
2 answers
2k 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 ...
sn22's user avatar
  • 43
0 votes
2 answers
754 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 ...
beta's user avatar
  • 203
0 votes
1 answer
64 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.
xxx jenssen's user avatar
0 votes
2 answers
607 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 - ...
kibus90's user avatar
  • 151
0 votes
1 answer
2k 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 ...
iceiceicy's user avatar
  • 139
13 votes
4 answers
10k 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, ...
Ranuka's user avatar
  • 1,784
0 votes
1 answer
974 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 ...
user avatar
0 votes
0 answers
258 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) ...
10885338's user avatar
  • 101
1 vote
1 answer
1k 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.
lfo.party's user avatar
0 votes
1 answer
2k 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 ...
aMJay's user avatar
  • 127
0 votes
1 answer
22k 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 ...
Jeff's user avatar
  • 1
0 votes
2 answers
38 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, ...
Dan's user avatar
  • 1
0 votes
1 answer
39 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" ?
Aneswire's user avatar
0 votes
0 answers
243 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> <...
jajck_xx's user avatar
2 votes
2 answers
4k 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>' ); ?>
Seryozha's user avatar
0 votes
1 answer
594 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('...
Adelin's user avatar
  • 105
2 votes
2 answers
5k 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( '...
Sami's user avatar
  • 174
2 votes
1 answer
1k views

Change sidebar headers from H1?

My theme uses H1 tags without much thought, including the site name at the top of each page and each of the sidebar menu titles. I checked the sidebar.php file in my themes folder, but there is no ...
Aidan Knight's user avatar
0 votes
1 answer
1k views

How can I add a title to this 'maintenance mode' function?

I use the function below to manually trigger temporary 'maintenance mode'. function maintenance_mode(){ if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ){ wp_die('<img src="/...
glvr's user avatar
  • 881
1 vote
2 answers
1k views

How to Change Title Attribute to be different from Page title

My Wordpress Site (PeterKellner.net)'s home page is a page titled "Who is Peter Kellner". The browser tab shows that and I want it to just say peterkellner.net. How can I make that happen without ...
Peter Kellner's user avatar
1 vote
1 answer
1k views

Does changing a post title of a published post automatically change permalink?

In what I’ve seen and what i’ve read, changing a title to a published post won’t change the permalink. I researched again this morning and found nothing to contradict that. However, a client changed ...
user41091's user avatar
  • 145
0 votes
0 answers
243 views

How can I remove an unwanted character from the main page's title?

I'm working on this website: http://mel-mary-blog.fr/ Since the girls creating all the articles wanted a better SEO, I installed Yaost and did all the configuration I could without paying for the ...
Jaeger's user avatar
  • 101
0 votes
2 answers
3k views

How do I show the post title if an advanced custom field hasn't been used?

I've got an archive page for to display custom post types. Within the WP_Query that displays the custom posts types I want to display an ACF (Advanced Custom Field) or, if the user hasn't filled out ...
Andy's user avatar
  • 11
0 votes
1 answer
48 views

Permalink and ACF field

I'm trying to get the thumbnail and title from permalink outside the main loop using ACF field: <?php $post_id = get_field('1_main_post'); if( $post_id ): ?> <a href="<?...
D_P's user avatar
  • 143
0 votes
1 answer
267 views

How to search titles/artist/album within a playlist, and only lists the results that match?

I am creating a simple audio WordPress theme, and have a playlist being rendered in the front page using short-code [playlist ids="29,30,31,32,33,34]". How to list only the songs with title (or artist)...
greg's user avatar
  • 109
0 votes
1 answer
189 views

Image behind the post's title

I'm trying to find question how to change or at least resize annoying image behind post's title, see attachment: You can see it on address: http://promisingcoins.com/electroneum_part1/ I use theme ...
Martin Surovec's user avatar
0 votes
1 answer
3k views

Show different title on category page

In my category pages, the title of the category is shown as the title of the page. I want to have a different title, for SEO purposes. How can this be done? Say my category is mystery books I want ...
IXN's user avatar
  • 906
1 vote
1 answer
2k views

How get get list of pages in ajax search

I am trying to follow this solution, it is kind of working but I need a list of pages rather than posts. This is the code that I am working with using Codex information from wordpress but I am ...
pv619's user avatar
  • 113
0 votes
0 answers
970 views

How to remove the duplicate title tags and duplicate meta descriptions?

Google search console detects my duplicate title tags and duplicate meta descriptions... I don't know how can I remove them. These two problems are same. It's from same page. My main page and page 2.....
user avatar
0 votes
0 answers
47 views

Post title spoiler how?

I want when i click post title then a hidden content will show. The code: https://pastebin.com/W6Q22gVL What i want to show when post title is clicked: https://pastebin.com/juy3ekXK
ANdy's user avatar
  • 47
2 votes
1 answer
7k views

Site title not showing. What can I do?

My WordPress site's title not showing. It's just displaying the domain like, www.example.com. Please suggest how to display the proper title tag.
Sujon Kumar Roy's user avatar
0 votes
2 answers
3k views

Remove tagline from the HTML <title> on the home page without plugin?

I try every solution what I find on the net, but none of them work. I using generatepress. My latest trying that, but not working...: if ( is_front_page() && is_home() ) { ...
Galgóczi Levente's user avatar
0 votes
1 answer
37 views

filter the title changed also the page titles

I created a custom post type with different input fields. For example first name and last name. So I want this inputs as title in the post column-list. To do this I used the filter option: ...
Joppieb's user avatar
0 votes
1 answer
790 views

automatically add custom fields to post title

im going to add custom fields to post title , my post title is "Marroon Five" and my custom fields is "release-year" and with value "2017" . so how to make the output : Marroon Five (2017) this is ...
juicebyah's user avatar
  • 111
0 votes
1 answer
321 views

Put a span class in the shortened product title

I'm trying to put a span class in the result of the title to be returned, however, I can not succeed to detect the class. This is the original code: //Limitar el número de caracteres en la página de ...
Nerea's user avatar
  • 1
0 votes
2 answers
445 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> ...
Ramesh KR's user avatar
  • 101
1 vote
1 answer
3k views

set title attribute in wp_get_attachment_image()

I am trying to use wp_get_attachment_image() and set a different title attribute from what is stored in the media library for that image. echo wp_get_attachment_image($image_id, 'large', false, array ...
feroxy's user avatar
  • 13
0 votes
0 answers
45 views

Allowing HTML elements in title widgets spacing problem

I found some code online to allow me to put span tags in text widget title, so I could change the colour of some titles. It works, but the thing is that I need to make title half red half black color. ...
Limpuls's user avatar
  • 307
0 votes
1 answer
82 views

Odd hyphen added at end of blog post

I can't get rid of the hyphen in the title of this WordPress blog. The hyphen appears when the blog is posted on Facebook. The hyphen also appears in the browsers tab after the title. I tried ...
Jeff Klein's user avatar
0 votes
1 answer
28 views

How do you keep the title of a post. to NOT show when publishing the post?

There is one post, in fact is the first post I have, and I do not know how to make the post title from not showing. I have tried using various plugins from the WordPress repository and none of them ...
LifeSurroundsUs's user avatar
0 votes
1 answer
88 views

How To Keep Search Title the same on paged Results

I have a small issue: The search results page returns perfectly my crafted title, but the problem i am facing is that the title changes on paged results. If results are all on page then its fine, if ...
Ibby's user avatar
  • 3
2 votes
0 answers
42 views

How to add a custom field after wp post

I want a subtitle box after the title. How to show it in the post editor?
Tamal Dev's user avatar
1 vote
1 answer
653 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 ...
Sale ManagemenT's user avatar
0 votes
1 answer
963 views

My posts page is missing the page title

I cannot for the life of me figure out why a title is not showing up on my blog page. I want to be able to have a title and maybe even some descriptive text below instead of just jumping into the ...
YanaV's user avatar
  • 1
0 votes
1 answer
256 views

Reduce size of responsive title

When using a mobile device or a tablet, the titles of my products are cropped. I'd like to simply reduce their size. Take a look to the image: Is there a way to change that? Is it CSS or Php? The ...
Stefano's user avatar
  • 91
0 votes
2 answers
109 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 ...
N. Gomes's user avatar
1 vote
1 answer
294 views

Combine get_page_by_title to exclude pages from wp_list_pages

I am using get_page_by_title to exclude a few pages from wp_list_pages, my code looks like: <?php $page1 = get_page_by_title('title1'); $page2 = get_page_by_title('title2'); ...
Josh Rodgers's user avatar
  • 1,173

1 2 3
4
5
14