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.

learn more… | top users | synonyms

0
votes
1answer
39 views

How can I choose and change a post title at random from an array when it is published?

I want to populate an array with post titles and change the title of the post (which is a draft) to a random member of the array of titles. Something like this? function set_random_title ($title) {...
0
votes
2answers
94 views

How do I change the core post search algorithm? Where is it found/constructed?

I have wordpress and woocommerce installed and I noticed that woocommerce's product search seems to use wordpress's search. Well, I don't like the search, and I'd rather alter it at the core rather ...
0
votes
2answers
180 views

convert post title to image

Im trying to convert the post title to an image. i created a php file in the theme folder image.php with the code UPDATE: working code require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-load.php'); $...
0
votes
0answers
114 views

Adding number of items in cart at the beginning of the <title> tag using Javascript

I'm working on a WooCommerce site and I'm trying to add the number of items in the cart, inside of the <title> tag. The thing is: I've been looking for all over the place where the <title>...
0
votes
0answers
27 views

All in ONE Seo: Post Title duplicates Site Title

I use All in ONE Seo Pack. The Page Title Format is set as %page_title% | %blog_title%. However, the post title duplicates site title, for instance, It is normal for the category title, page tile ...
0
votes
1answer
327 views

Dynamically change page title from URL param

I currently use SEO plugin but I need some extra help because the plugin cannot help me in this case. I have a page that displays data based on a URL parameter (ie. http://example.com/?user=john25). ...
0
votes
1answer
48 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
1answer
45 views

Hide post title input for all roles except admin

How would this function need to be updated to exclude the admin? add_action('admin_init', 'wpse_110427_hide_title'); function wpse_110427_hide_title() { if (current_user_can('subscriber')) ...
0
votes
1answer
61 views

How to get Title of Home Page to Appear on Page

How can I get the Title of a Home Page to appear? I am using the Quark "out-of-the-box" Front Page Template. Home Page "view source": <article id="post-1" class="post-1 page type-page status-...
0
votes
0answers
35 views

Cannot Get Title or Thumbnail of Posts Page

I set up a page called 'News' and applied this as my posts page. I am really struggling, however, to output the title 'News' or the featured image that has been added to the page itself. Whenever I ...
0
votes
2answers
99 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 -...
0
votes
2answers
42 views

How to Implement Category.php page title in wordpress custom template?

Lets say you have a custom template and you want to implement a title of Wordpress template for section /category/general where general is a category name . How to implement category page ...
0
votes
0answers
64 views

Remove redundant meta title separator on home page

On all of my pages I have the site name, a separator character and the page name. However on the homepage it simply states the site title with no page name, however the separating character is still ...
0
votes
1answer
105 views

Change Meta Title seperator and remove on homepage

I'm trying to change the character which is used as a seperator in my page title. At present it is in the format Site Name - Page Title However I would like to change this hyphen to a pipe ...
0
votes
0answers
54 views

WP-Download Manager - Problem with titles and URLs

In WP-Download Manager plugin I've found that this code generates title of every file: Function: Rename File To Ensure (Credits: imvain2) function download_rename_file($file_path, $file) { $...
2
votes
1answer
672 views

Adding HTML within an image title attribute

I am using some jquery which applies an overlay on an image on hover. The script uses content from the image's title attribute to display over the image. When I tested this locally, it seemed to work, ...
0
votes
0answers
41 views

How to add text next to the title in the admin area

is it possible to add text at the places the arrows are pointing? I also want the text to appear only on one particular page. I would think there must an action out there that lets me do that, right?
0
votes
1answer
34 views

Post title to show all characters after having it limited for preview

Currenctly I have the post titles that are being limited by a wp_trim_words. Here is the code below. // Filtering character limit on post titles. add_filter( 'the_title', '...
0
votes
1answer
54 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
226 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
0answers
89 views

Show Post title and featured image outside of the box

I'm trying to work out my idea to show post featured image and post title outside of the post content. Let me explain better. I'm using underscore framework. There are three files there. single.php, ...
0
votes
1answer
43 views

Custom Post Type Title Placeholder [duplicate]

Is it possible to use custom placeholder for custom post title? I couldn't see any placeholder mentioned in the labels array argument of register_post_type function documentation.
1
vote
1answer
64 views

Add Link Text Back to Insert/edit link Box

Version 4.2.1 of WordPress removed the link text from the Insert/edit link box. How can i add it back?
0
votes
1answer
270 views

Change title in head on Archive page

I'm having problems with figuring out how I can change the title on my archives pages. I now have a title like this: <title>Jobs Archive - The Company</title> But I would like to have a ...
0
votes
1answer
98 views

How to show posts rank based on custom field value

I have total 100 posts, 10 posts in each page on homepage with paginatin. Here is my code $args = [ 'posts_per_page' => 100, 'fields' => 'ids', // Add additional args here ]; $...
0
votes
0answers
84 views

Creating a Custom Title on a Custom Page Template

Most of our news site is made of WordPress Pages and Posts. Then we have several custom pages that format information from a non-WordPress database. exs. Calendar of Events, Local Nightlife Venues. ...
0
votes
1answer
23 views

Add a non-dynamic phrase/character after a page title?

I have a client that has an idea to add a coma after the main page title. Sure, this sounds simple to do-but it makes the navigation see 'WELCOME,' as well. Basically I am adding a phrase in the same ...
0
votes
1answer
543 views

Change title tag dynamically or within plugin?

I have created a WP plugin which uses the query string to pull in page data based on what the visitor has selected. Obviously this 'simulates' additional pages but the page title does not change from ...
0
votes
1answer
26 views

Variables in post title

How can I make my post title dynamic? Let's say I'm trying to make a post with this title: Today is [day]/[month]/[year] [day] should be parsed into a php code that will retrieve the current day, ...
0
votes
0answers
25 views

Increase Page Title Font Size

Site: http://tkhrepair.com/business-services/ I'm trying to make the font where it says Home / Business Services larger, I wanted it around 16px. I've tried using Inspect Element for find it, but to ...
0
votes
1answer
520 views

How to override the title tag for woocommerce endpoints?

I am trying to set the title tag for Woocommerce pages that have endpoints. I am using Yoast SEO and so far have created this: function woocommerce_endpoint_titles( $title ) { $sep = ' | '; $...
0
votes
0answers
16 views

Page URL that is the same as other but in a different category

Is there anyway to prevent a duplicate post getting assigned a number as it's title despite being in a different category? www.example.com/coca-cola/diet www.example.com/pepsi/diet-2 Both are ...
0
votes
0answers
41 views

Link Post Titles to External URLS

I have a site full of 1000s of newsfeeds. When user clicks on the title, it takes the user to the article page, then the user must click 'read full article' to go to the external url. Is it possible ...
0
votes
0answers
46 views

Changing page's name after page creation

I have a page, I can't know the name of the page before doing an elaboration with PHP, i thought about changing the page name with javascript after discovering the page name, I have not written the ...
1
vote
1answer
89 views

How to echo a different title to the page if it's opened on an android mobile phone

How do I echo a different title to the page if it's opened on an android mobile phone? I have this function that checks if it's an android: function is_android (){ $browserInfo = ...
0
votes
0answers
45 views

Setting title in the front end

I am trying to set up posting from the front end. Everything works, but I cannot get the title to set.. Part of code: (Some validation is done beforehand) $title = "abc"; // ADD THE FORM INPUT ...
1
vote
3answers
165 views

Alter only the page title, not the post titles within

I have a page where, with shortcode, I queried multiple posts from a CPT - so the page is one kind of archive page to the general users. Page Title - CPT Post Title #1 - CPT Post Title #2 - CPT ...
4
votes
1answer
240 views

What is the use of $page_title and how to use it?

I'm developing a WordPress plugin and added add_menu_page() but not sure what is the use of first parameter $page_title. If this is to use to display page title on the plugin page then how can I do ...
1
vote
2answers
298 views

have WP Gallery display the title instead of caption

OK, I have looked and read quite a few message boards about this problem and I can not seem to find an answer. I am uploading thousands of photos for a photographer and using the WP Gallery ...
1
vote
1answer
113 views

Enqueue and Dequeue from admin bar nodes

I developed a few nodes under my custom parent node on admin bar. While navigating on frontend and clicking on one node I'd like to enqueue some css file. The url should remain. While navigating on ...
3
votes
4answers
244 views

Dynamically add titles to post images if they are empty

I have a client's site where they want to add image title attributes dynamically to images that don't have one already. So if the title attribute is empty, add a title of whatever the post title is. ...
0
votes
1answer
456 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 = ...
1
vote
1answer
83 views

Looking for Add Title Tag on Feature Images on WP

I am facing problem with adding title tag on feature images and also thumbnail posts. I tried to find out but not successful to resolve these kinds of issues. Kindly help me please how to add title ...
0
votes
0answers
200 views

the_title() Returns the page title instead of the post

I'm using a custom page for listing my posts, now using the loop and the_title() returns the page title instead of the posts. My loop is a simple: <?php if (have_posts()) : ?> <?php while (...
0
votes
2answers
43 views

How to show show the Second page title in the page

I am using a page hierarchy and I want to show the title of the 2nd parents The structure is something like Main Page Main Page > Second page Main Page > Second page > Third page Main Page > ...
0
votes
1answer
577 views

Display Menu Navigation Label

How to get Navigation Label as should be of the menu I'm using this code <?php $locations = get_registered_nav_menus(); $menus = wp_get_nav_menus(); $menu_locations = ...
3
votes
2answers
3k views

Two title tags in my header

I'm building a child theme and it currently has a very simple <head> section in header.php: <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport"...
0
votes
1answer
119 views

Why I can not modify the appereance of my title web site in google? [closed]

I have tried everithing I have thought, but I could not solve it. The problem is that when I search my website domain in Google it appears like this: Which is different that the tittle I have ...
0
votes
0answers
141 views

How can I hide post title from Categories menu in side bar?

I hope there is someone who can help me about this. This problem makes me crazy since two days. I added "Categories" widget to my sidebar, I have 3 level categories and the 4th one is blog posts. ...
0
votes
1answer
61 views

Comparing pre-saved post_title to post-saved post_title

I'm implementing an inventory updater on a Wordpress product site that integrates with a 3rd-party website via their custom api. We're going to have a number of people updating the 3rd-party website, ...