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
15 views

how to get title to custom tags page

how to get title to custom tags page ? & how to make if condition like to my taxonamy if ( is_page() ) { the_title(); } elseif ( is_tag() ) { single_tag_title(); } tax: add_action( '...
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
0answers
14 views

Adding a title attribute to category without

I'm tring to use (to have a title attribute in the category): <?php foreach($categories as $category){ echo '<a href="'. get_category_link($category->term_id ) .'" title="'. $category-&...
0
votes
1answer
1k views

Auto save title as custom meta field value

I create a custom post type where I removed the "Title", instead I want to use one of my custom meta value to become the title. This is just to make sure the title look good. Know that the post ...
0
votes
1answer
14 views

Ampersand breaking Widget title

When adding an ampersand (&) to the Text Widget title, the title breaks at the ampersand position (frontend). So: 'me, myself & I' becomes: 'me, myself ' The ampersand is being stored (...
0
votes
1answer
693 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 ...
6
votes
4answers
291 views

Issues with title-tag and document_title_parts

Wordpress version 4.5.1 I'm trying to dynamically update page titles on a particular template. After lots of digging and learning about the wp_title() changes, I'm attempting to use ...
0
votes
1answer
29 views

Wp Admin Bar Customizing Labels

I would like to replace the Label the Plugin WP Custome Area sets on the admin bar. This is the initial parto of code that sets the menu title: public function build_adminbar_menu($wp_admin_bar) { ...
0
votes
0answers
8 views

Create a post on registration with title include user first name

I use this code for create a post (-type) on user registeration: function create_new_user_posts($user_id){ $userinfo = get_userdata($user_id); if (!$user_id>0) return; $my_bio_post = ...
0
votes
0answers
7 views

Replace post title with customised drop down menu & others

So basically I want to be able to customise the backend "add new post" page, replacing the "post title" field with a dropdown menu and automatically inserted variables (date & username). ...
2
votes
3answers
4k views

the_title() shows title of the first post instead of the page title?

I'm occasionally facing this problem and not sure what causes it, any ideas? <?php get_header(); ?> <div class="content" role="main"> <h1><?php the_title(); ?>&...
5
votes
6answers
6k views

How can I add title attributes to next and previous post link functions?

For some reason a title attribute is not appended to next_post_link and prev_post_link calls in WordPress. How can I add one?
0
votes
0answers
16 views

Link in widget title [duplicate]

how can I add a link in the widget title? HTML is not permitted, and until now I've used the Widget title links plugin, but with the latest version of Wordpress, it doesn't work anymore. I've tried so ...
1
vote
1answer
47 views

Modify conditional titles to include parent and page number

Using conditional titles with title-tag rather than wp_title(), how do I add the immediate parent or ultimate grandparent to the title and,for multi-paged posts, the page number? When using wp_title()...
2
votes
1answer
35 views

get_post_field - Title without paragraph

Normally I wouldn't insert a single post with a technique like this, but sadly this project requires it. I try to call the post_title with: echo apply_filters( 'the_content', get_post_field( '...
0
votes
0answers
34 views

How do I modify CPT titles?

New to CPTs, I've an issue with the titles of some I've just created. My blog posts are within /notes/ and so the CPTs have 'with_front' => false' for the slug. But the titles are prepended by '...
3
votes
2answers
2k views

How to remove title attribute from gallery links and images

I want to remove the title attribute from within the output of a [gallery] shortcode e.g. <a href="url" title="bobby"> <img src="url" title="bobby"/> </a> should be: <...
0
votes
1answer
104 views

Homepage meta title and description not showing in search engines?

I have just launched a new website and have been having trouble locating it anywhere on search engines, so I decided to do a google search for "site:mysitename.com" to show all of the results from my ...
1
vote
2answers
30 views

Part of title duplicating but not sure how to remove from code - help?

I inherited a problem that no one in my office can figure out. Our company website has page titles in the format of "Page Name Company Name - Company Name." The first instance of Company Name is a ...
3
votes
4answers
988 views

How I check if the same post slug has not been used before publishing?

For an indie rock agenda I created event posts. With the help of javascript, the custom fields values (bands, places and date info picked in select boxes) are copied as the post title when publishing ...
1
vote
1answer
31 views

Add anchor text to php

I am using this code to display a list of child pages of a parent: <?php global $post; // Setup the global variable $post if ( is_page() && $post->post_parent ) { // Make sure we ...
5
votes
2answers
3k views

Is there any way to dynamically alter widget titles?

I have a case where that are a lot of widgets in several custom sidebars. I am wondering if there is a simple way to alter the titles of each widget dynamically. Typically a widget has a title field ...
0
votes
2answers
1k views

how to remove the default title of Categories widget

hi i'm using the Categories widget show hierarchy. I leave the space for title because I don't need to show any title. but it then displays on the website as "Categories". how can I remove that?
0
votes
1answer
56 views

How to customize search result page title?

I would like to customize the page title of the search result page: from: <title>Search Results for “search string” – Page 2 – Sitename</title> to: <title>“search string” result ...
5
votes
2answers
892 views

Auto Add Image Title,Caption,Alt Text,Description while uploading Images in WordPress

Can anyone tell me how to auto fill/add same image title in title, caption, alt text and description while uploading any image in my WordPress Posts.
0
votes
1answer
39 views

How to get the title of the random images from media library?

I am displaying random images in my homepage. My problem is, I can't get the title of the images to show in lightbox. Here are my codes. Codes that gets the images from the media library function ...
0
votes
2answers
75 views

Change auto post title generation according to different post properties

I have the following snippet that allows me to auto generate the post title. I'd like to change the $post_type of the 'post_title' => $post_type . ' Job #' . $post_id line to some other post ...
-3
votes
1answer
20 views

How remove “recent comments” title without modifying code? [closed]

How remove "recent comments" title without modifying code? I have already disabled comments and do not wish to see that title.
-1
votes
0answers
23 views

Filtering title in BuddyPress

I'm working on filtering titles for BuddyPress pages (specifically, Groups and Group Forums). I'm having some trouble so maybe someone can point me in the right direction Since 4.1, WordPress has ...
-1
votes
1answer
32 views

Rename file after title , one small problem

I'm using this question: Change Attachment Filename which works but it has a problem. He renames every file with FileNameToRename and it's same image. What I want to do is instead of FileNameToRename ...
1
vote
1answer
96 views

Cannot update WordPress General Settings Site Title and Tagline

I have a WordPress 4.4.2 installation with no SEO plugins at all. The plugins that I do have activated are WooCommerce, WooCommerce Multilingual, and WPML. I am unable to update the Site Title and ...
0
votes
2answers
75 views

Display image title and caption inside a single post

I want to display image title and caption inside a <p> tag in single post in the_content() function for every image that has one. So for example if I add gallery, and define title for every ...
0
votes
1answer
79 views

How to add span on WordPress Title for first and third word

I need to know how to add a span to title post, not only for 1 word, but 2 or 3 words as I need. For example I have a normal title like this: Lorem ipsum dolor sitamet consectetur adipiscing I ...
0
votes
1answer
57 views

How to modify title tag in a plugin?

I would like to add a meta value to the title <title> tag in a custom post typed page. So there would be meta value before normal post title. I have a custom field created that contains the ...
0
votes
1answer
33 views

How can I prevent the Search Results Page from changing title?

I am trying to add the search feature to our site. I have the search feature located in the desired position on the page so I'm happy with that. My problem is that when the results are displayed, ...
0
votes
1answer
69 views

How to append to title via functions.php for auto-posting plugin [duplicate]

What I've got so far I've finally got the functions.php plugin to append a string to custom post titles of a certain post type with this function: function append_album_review_to_title( $title ) { ...
0
votes
1answer
55 views

How to auto update post title and slug with category name when post status is updated

I need to auto update post title and slug with category name every time when post status is updated. Some function like this but with the correct code.... add_filter('wp_insert_post_data','...
3
votes
1answer
157 views

Display all posts with same title

I'm trying to display in a sidebar php widget, all posts with same post_title in a specific category. I find this code on internet but don't how to use it Thanks for your help. function ...
0
votes
0answers
26 views

Post title replacement

How do I change many post title only which are in drafts. I need to replace a list of words with another. I'm using latest WordPress version 3.9.2
0
votes
2answers
84 views

Auto update post title and slug when post status is changed

I need help. Thanks in advance. I need a function that update post title and slug with some default title + current date when post status is updated from draft to published. I use this one to update ...
0
votes
0answers
34 views

Article posted in multiple categories but show wrong title

I have an article which is posted in multiple categories and I put those categories in a menu, but when I call the category, the title always shows the first category (ascending alphabetical order). ...
0
votes
0answers
30 views

Get first title post from an author

I want to display first title post from an author on my loop with this code: <?php $number = $count_post; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ...
4
votes
3answers
254 views

Remove description from <title> on Home

My theme has support for title-tag add_theme_support('title-tag'), but I can't remove the wordpress description bloginfo('description') from <title> on Home page. I'm trying using this filter ...
0
votes
1answer
37 views

Hide title in Merlin Theme on posts and pages only

I'm trying to figure out how to hide a post and page titles while on the specific post or page, but NOT throughout the entire site. I've tried hiding the .entry-title class, but that hides titles ...
1
vote
1answer
216 views

Editing Header Titles of each details in woocommerce Order Email [closed]

I'm using flatsome theme, woocommerce plugin. On my thank you page I get the bank details, order details and customer details etc. but on customer order email, header TITLES of those details are ...
0
votes
2answers
753 views

How to I make my post title link to a custom field

I have a custom field in my posts called post_bookmark_url which contains a link. I want the post title that is displayed in the excerpts on my home page to link to the post_bookmark_url rather than ...
5
votes
4answers
6k views

Force post slug to be auto generated from title on save

I'm running a property site where many properties are sold in apartment blocks. Because of this what the content editors do is create a post/property with all the details and then use a duplicate ...
3
votes
2answers
61 views

What is the impact if i ignore title and content in my custom post types CPT?

I am using CPTs (with PODS) and i need to "ignore" in "supports" the title and content. I have no problem to alter the columns in the admin manage CPT list. Also i understand that the standard ...
7
votes
3answers
7k views

Change page title in admin area

Is there someway to change the title in wp-admin? Been looking all over google but no one seem to mention it. I simply want to get rid of "— WordPress" and possibly change the "‹" into ...
0
votes
0answers
11 views

How to fix the format of entry pages with thumbnail images?

I am trying to make the entry posts with a thumbnail image to the left, and title above the excerpt of the article to the right of the thumbnail, but aligned with it. Currently, the thumbnail is below ...