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
0
votes
0answers
8 views

Change woocommerce Product categories title only in one page

Hi I would like to change the woocommerce product title only for one page in my website. Is there a snippets code that I can use to achive this result ? For example if I have a product category named &...
0
votes
0answers
6 views

Why is AIOSEO page title not replacing native WP page title?

Just updated AIOSEO to 4.0.12 and i'm having page title issues. Specifically, each site page title consists of the title I've specified in that page's AIOSEO admin screen, PLUS (incorrectly), the ...
1
vote
0answers
14 views

Copy title field to caption field for media files

I need to fill caption field of hundreds of media files in some art gallery site. Titles are already filled with the necessary information. Is it possible to fill caption fields automatically with ...
0
votes
0answers
14 views

Add post title as a tag

How can I add post title to post tags? Example: Post title: post title Tag: before post title after wp_set_post_tags(4260, array ('befor','.get_the_title().','after'), true ); this function didn't ...
0
votes
0answers
20 views

Link to products with the same image title (woocommerce)

I have products with a generic image. The image title is for example abc.png. I would like to generate a link to all products with that image title. Any help would be appreciated. Thank you.
0
votes
1answer
54 views

Add text to the first “title”=>get_the_title($post->ID), and shorten

I use this code to display the title : $imageAttr = array( "class"=>"alignnone size-medium", "alt"=>get_the_title($post->ID), ...
0
votes
1answer
15 views

Prefix the title tag, if IP address is the dev server

I want to conditionally prefix the contents of the tag if the IP address matches the dev server. I cobbled something together, and it will output the title tag correctly, but the original title tag ...
1
vote
1answer
22 views

Changing title & add Breadcrumbs

Im wondering the possibilities of making the title of a page change depending how the user got there? For example, if they are on the homepage and make a search, would it be possible to display what ...
0
votes
0answers
12 views

How to change or delete the title of the woocommerce store?

Install woocommerce on my website and the store and products appear with the title "false" How could I delete or change it?
1
vote
2answers
36 views

How to edit title on Edit post pages?

The <title> tag in pages for post edit is Edit Post < Site name — WordPress. I want to change it to Edit Post < Site name – The title of the post in editing. Is this possible? Where can I ...
1
vote
1answer
25 views

How do I shorten the title lenghs with Elementor theme? [closed]

Hi guys I've searched this for too long and I am getting tired now. I need to set a limit on my post titles but I don't know how to do it. On google there are snippets of 300000000 codes to do the ...
0
votes
0answers
11 views

How to check title is being entered in Title Case?

I would like to ensure that my titles are entered in Title Case. I would prefer to do this from the editor, before it is saved to the database, rather than altering what is displayed, or modifying ...
0
votes
1answer
12 views

how can I change the font on Edit Post area (admin dashboard)

I need to change the font family on the Edit Post title and post area title. how can I change it?
0
votes
0answers
13 views

Checking if site title and tagline settings are checked in Customizer

There is currently the option to display a site's title and tagline in Customizer. There doesn't however appear to be a WordPress function to validate if these are checked or otherwise. The purpose is ...
0
votes
1answer
11 views

Changing Title Tag on Shop Archive Page (current solution reverting to Title of First Product in Loop)

Firstly, add_theme_support( 'title-tag' ); is enabled in my theme. I have two filters to modify titles, this one hooking on to the_title add_filter( 'the_title', 'custom_account_endpoint_titles', 10, ...
1
vote
1answer
36 views

Capitalize All Titles and Headlines in Chicago Style

I want to capitalize all titles and headlines on my blog according to the Chicago Manual of Style. Since this is a very tedious and time consuming task to do it manually, I thought there must be ...
0
votes
0answers
24 views

Date Shortcode in Image alt and title tags

I am using the following shortcode for year in my Content. function year_shortcode() { $year = date('Y'); return $year; } add_shortcode('year', 'year_shortcode'); The same shortcode I used in the ...
0
votes
0answers
12 views

Shop Category Pages missing <h1>s

My website is using Future Life theme and Woo Commerce. On the shop product category pages, it doesn't display the category name and there are no <h1>'s ../nothing to make a <h1>. Does ...
0
votes
0answers
12 views

Page Titles and Slugs get deleted

I have a strange issue with my wordpress website. It doesn't save post/page titles. Has anyone faced a similar issue before? Each time when I create a new post or a page and put a title - it gets ...
0
votes
0answers
23 views

add multiple titles in header images

I created a rotated header images I need to add multiple titles on every header images For example one H1, one H2 and one H3 on every header image What is the best way to add such titles in the header?...
0
votes
0answers
46 views

Special characters in post_title replaced by '?'

This is my code : if( !empty( $_POST ) && !empty( $_POST['foo-action'] ) ){ $html .= sprintf( '<table><thead><tr><th>%1$s</th><th>%2$s</th><th&...
0
votes
0answers
6 views

Page Title has a navy portion behind it blocking part of feature image

I am using the Full Width - Parallax Title as my Page Attributes and have selected a Feature Image. This works on all of my pages except for "About Us" which has the feature image and then a ...
0
votes
0answers
6 views

how automatically show the image title before the image caption/description in a wordpress gallery?

I am using a simple Wp 5.x gallery like this [gallery size="full" columns="1" ids="6304,6305,6306,6307,6308,6309"] The gallery shows me the images and the captions/...
0
votes
0answers
8 views

Why does the_title() filter is also applied in a tag / list tag?

So I have a code like this below This code is to add a prefix for the post title. But then the prefix is also applied to list-style tag. function make_custom_title( $title, $id ) { if ( ...
0
votes
0answers
10 views

How to divorce page name from the shown page header?

I am trying to change the top header of my About Me page to show my full name (instead of "About Me") without changing the page name elsewhere. When I manually type my name into the title ...
0
votes
0answers
15 views

How Do You Grab The Current Post Title From A Dynamically Generated Page?

I'm trying to change the Open Graph metas that yoast inserted into my dynamically generated pages. For some reason I just can't get the actual title of the page. Unfortunately, all the examples give ...
1
vote
1answer
376 views

Woocommerce: How to remove page title from storefront theme homepage

I have been searching online for this and everywhere I go it says to put the following into your functions.php function remove_title_from_home() { remove_action( 'storefront_homepage', '...
1
vote
2answers
15 views

I want to show category in the post title , how can I do

How to add Category name to post title ? “PostTitle + CategoryName”?
0
votes
0answers
13 views

add site wide header / title

I have created my own custom headers and site banners on the woocommerce pages. I use this to remove the title from the sidebar in my single product page: remove_action( '...
0
votes
1answer
14 views

How to get the full product name by ignoring custom modification on it

I've added a filter to simplify product name on my shop page. This is the code I use add_filter('the_title', 'mod_product__title', 10, 2); function mod_product__title($title, $id) { global $...
0
votes
1answer
35 views

Modify WordPress Page Title (<head></head>)

I'm trying to modify the WordPress page title. However I'm fairly new to WordPress functions, hooks (filters & actions) and so on. What I could achieve is to change and modify WordPress titles in ...
0
votes
0answers
15 views

display post pdf attachments in side bar with link text

I have a widget that places links to pdf attachments in the sidebar. I want to use the pdf attachment text heading (that is used to display it in the parent post) as the title. I cannot get this to ...
0
votes
0answers
35 views

Time Stamp In A Wordpress Post Title That Does Not Keep Refreshing

I have a short-code that uses PHP to echo a time stamp ala: 1595140137 When I use that short-code as the default post title in new post, the post title changes with each page refresh, and in the ...
0
votes
1answer
26 views

Title tag on home using front-page template not showing

Currently in header I have the following: <title> <?php wp_title(' | ', true, 'right'); ?> <?php bloginfo('name'); ?> </title> I tried adding if statement like the ...
0
votes
1answer
43 views

How to retrieve category NAME instead of ID in a function with a taxonomy custom field?

I'm trying to change the post title (both back-end and front-end) for a specific post type through custom field. The custom field I'm using is a taxonomy field where you I choose from different ...
0
votes
1answer
62 views

Change the text “search result for” on search result page

I've been searching thru all WordPress files for the phrase "search result for", which is displayed on the search result page (search result for (keywords)) but can't find it. I would like ...
0
votes
1answer
54 views

Theme support title tag - how to replace the default WP separator (with a filter)?

I'm developing a theme for Themeforest and one of their requirements is about the tag. Themeforest states their requirement as follows: The theme must let WordPress add and manage the title. This is ...
0
votes
1answer
72 views

Remove text after a dot and a colon in Woocommerce product title

In my product title, I would like to remove all the text content after the first dot "." or colon ":". For instance I would like to transform : Theodore Deck : The Peter Marino Collection => ...
0
votes
1answer
216 views

Gutenberg - Title field required

I'm trying to make the title field required in Gutenberg editor interface. The PHP functions I found work with Classic editor interface but not with Gutenberg. I tried to add required attribute on ...
0
votes
0answers
13 views

I need to make the title of the page dynamic in my custom plugin

// Our callback to create the contact form page. function gym_contact_create_form() { $form = array( 'post_title' => wp_strip_all_tags( 'Gym Contact Page' ), 'post_name' => 'gym-...
0
votes
1answer
40 views

how to set alt & title for featured image get_the_post_thumbnail

I want to set post title for alt and title Attribute in this code what should I do? <?php if ( true == get_theme_mod( 'archive_featured_images', true ) ) : if ( has_post_thumbnail() &&...
0
votes
0answers
10 views

How to completely get rid of page titles with no use of plugins?

Hello StackExchange community, I desperately need your help. I am trying to completely get rid of the page title and the space that occupies right before the beginning of the content. Here is what I ...
1
vote
0answers
12 views

Page title is showing category name as well in the google search results

I am using WordPress 5.4.1 with yoast seo plugin on my blog (buybestproducts.in). In the meta box, title is separated by a hypen followed by site title. Everything looks fine. However, when google ...
0
votes
1answer
81 views

how to display posts content on the custom css popup by clicking on each title on the sidebar?

I want to display post titles based on post_tag from default post_type concat with post_category from another post_type named 'update' on the sidebar. And finally When users click on each title it ...
1
vote
0answers
26 views

Removing Title From Links to Site

So I've been using my wordpress site to blog. I've also been importing those blogs to Medium, and anytime I share the article the site title is appended to the end. So if the article is named "100 ...
0
votes
1answer
106 views

Display text if title in archive has specific word

In tag pages, I want to display specific text if the title containing a specific word. As example: I have a Tag and tag archive page: Yellow Banana And I want to display “cool fruits” in all tag ...
0
votes
0answers
34 views

Post title not displaying as recorded in the wp_posts table

I have a WordPress install in which the "post_title" field from the "wp_posts" table is not making it into the WP_Post->post_title variable. So, for a given post in the wp_posts table that has a ...
0
votes
0answers
13 views

How to add an image dynamically to post title if it is published today or less than 2 days

I was trying to add an image like a "new" image to the posts which are just published and are less than 2 days old. I tried using a function like this within a WP_Query but it is applying to all ...
0
votes
1answer
17 views

How to style archive post titles… but only those posts who have comments?

How would I style archive post titles for only those posts who have comments?
1
vote
0answers
13 views

Get Image from Media Library with the Title

i have set the Title from a Image in my MediaLibrary to "slider". I want to add this Picture via. Code to my page.php file. I dont want to use the ID, I want to use the Title. How can i do this? ...

1
2 3 4 5
14