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
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
5 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). ...
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
46 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
30 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 '...
1
vote
2answers
28 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 ...
1
vote
1answer
29 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 ...
0
votes
0answers
44 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
38 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 ...
0
votes
1answer
30 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 ...
-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.
0
votes
0answers
20 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
vote
1answer
80 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
63 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
70 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 ...
-1
votes
1answer
30 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 ...
0
votes
1answer
32 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
55 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 ...
3
votes
1answer
129 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
1answer
51 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','...
0
votes
0answers
33 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
2answers
72 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
1answer
73 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 ...
0
votes
0answers
29 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
219 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
64 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
35 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
167 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 ...
3
votes
2answers
59 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 ...
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 ...
0
votes
1answer
64 views

How to display alt tags in img src?

I'm working off a custom theme which they entirely left out including the alt tag in the img source. Here is an example of the code: <img src="<?php echo get_field('image')['sizes']['large']; ?...
0
votes
1answer
29 views

Add the title attribute to links

I want to add a title attribute to my link like this: <a href="#" title="here is the title">LINK</a> I know how to do this in html but I can't expect this from my users. I can't find ...
0
votes
1answer
69 views

How to remove category titles?

When I go into certain categories, there is a page title that says "Category: category_name", like this: I would like to remove the "Category" from that title. I've already looked around quite a ...
0
votes
2answers
73 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 ...
0
votes
1answer
44 views

Wordpress title as keywords (tags) with excluded stop words

How to change normal sentence WordPress title to "tag like" list with excluded "stop words". Example: "This is one test post title about something." To: "one, test, post, title, something" This ...
0
votes
1answer
218 views

How remove woocommerce title on category page only by PHP

How to remove woocommerce title on category pages only (by PHP) and keep rest of titles (on search result page for example) visible? thx
0
votes
1answer
34 views

Filter page title (displayed in browser tab) of wp-login

For wp-login.php, the default page title, as displayed in the browser tab, is "Log In". I need to change this value using a filter in functions.php. Every solution I've read addresses the header ...
0
votes
0answers
26 views

How to tell where <title> tag is being pulled from

I'm working on a site, http://vibrantnation.com, and the meta info is jacked. I've looked in .header.php of both the child and parent theme, and it looks OK. I've checked plugins, like Yoasts' SEO ...
1
vote
1answer
44 views

Set post title based on first h2 element in the content section

I have a front end editor set up for users to create posts and I would like to make it as simple as possible to create posts with the least amount of fields involved. Is it possible to generate the ...
7
votes
1answer
104 views

Prevent WordPress from adding image' title automatically

I wrote a plugin that set default title for all non-set (empty) titles and leaves the titles set manually (non-empty). The problem is when I upload new photos (to gallery), WordPress by default set ...
0
votes
1answer
71 views

Get title of page from URL

I have a "Go back button": $url = htmlspecialchars( $_SERVER['HTTP_REFERER'] ); echo "<a href='$url'>back</a>"; I need to display the page title of the $url, something like this: $url =...
0
votes
1answer
64 views

Remove Permalink From Admin Edit Post

Is there any way how to edit the title field in post.php? this field: I want to remove the permalink part but I wasn't able to find any hook or filter for it.
0
votes
1answer
63 views

Remove link from page title

How can I remove the link from the page title in my WordPress theme? Here's the link to my test site and below is the code responsible for that: <h1 class='post-title <?php echo $titleClass; ?...
0
votes
0answers
12 views

Use Post's subcategory in title tag

I changed my title to: %%subcategory%% %%sep%% %%title%% But WordPress doesn't seem to recognize %%subcategory%%, in the end it simply displays - My title How should I change the title to ...
0
votes
3answers
45 views

How to output the title of the blogs home page

I am using a static frontpage and a page for my blogposts. In my header.php I want to display the title of the selected page of my blogposts. For example: <?php if( is_home() ) echo '<h1>'...
0
votes
1answer
30 views

plugin admin subpage title and links in menu not highlited at current page

In my custom plugin subapges i want to echo their titles specifed in add_submenu_page() but i don't know how do that. This is part of code of my plugin which display links in left-side menu: ...
0
votes
1answer
101 views

How to insert dash (-) into database using wpdb and new_to_publish hook?

I am saving titles of posts in a separate table for a specific use. The titles are saved to the database when a post is published. code is: add_action('future_to_publish', 'send_emails_on_new_event');...