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
11 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
54 views

Parent category as WOOCommerce Categories widget title

I'm really not a developer, but this is something I expect not to be too hard to achieve :-) I really don't know where to start, so that's point 1. I read all of the topics about dynamically changing ...
0
votes
1answer
782 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 ...
-1
votes
0answers
10 views

How do i display woocommerce product attributes next to product title

How do i display woocommerce product attributes next to title Product title = Samsung Buds Attributes = Large It should display = Samsung Buds Large
-1
votes
0answers
6 views

Title limit for user role

how can I create a plugin or function? I would like to create a 65-character title input limit, but I would like this limit to be applied only to some user roles. How can I do it?
0
votes
1answer
13 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
26 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
9 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 ...
1
vote
1answer
517 views

Which filter affects the 'entry-title' post class

I created a plugin setting a $var to true if the post belongs to category 'a', and set the same $var to false if the post belongs to category 'b', it works and I can get the correct value depends on ...
0
votes
0answers
32 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
3answers
1k views

Append text after wordpress title

I would like to know is there a hook in wordpress to edit prefix and postfix of the_title in wordpress. The code in content.php the_title( '<h1 class="entry-title">', '</h1>' ); I would ...
0
votes
1answer
23 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
31 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
23 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 ...
2
votes
2answers
17k 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
529 views

Show page title just from the first child-page in template

how can I do this: Pages: Home - sub-1 -- sub-sub-1 --- sub-sub-sub-1 On home-page should only show the page-title of the first child-page like: sub-1 I found this: <?php $child_pages = $...
0
votes
1answer
34 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 ...
1
vote
3answers
2k views

How to set custom title of custom page template?

How to set custom title of custom page template? I try use wp_title filter but it's not working.
0
votes
2answers
854 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 ...
1
vote
1answer
704 views

Change the Title Tag of Search Products Page

Yes, i've seen some answers on different questions but they didn't fit to my situation. My theme has title tag enabled. The title in the wp_get_document_title() function is different than the real ...
0
votes
1answer
709 views

How to get all post titles starting with numbers and symbols?

I want to get all posts which are starting with a number (0-9) or symbols, in a list. I managed to get it work for letters, but this one is harder for me. Can someone help me out please? I tried ...
3
votes
3answers
9k views

Is there a way to override the <title> tag specified in header.php?

Firstly this is neither an SEO question nor a question about changing the title tag sitewide. If you google my question those are all the answers you see. So we have our own theme and we have ...
2
votes
2answers
1k 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>' ); ?>
0
votes
1answer
24 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 => ...
1
vote
3answers
666 views

How to remove “Category : …”

I am using theme Twenty Sixteen. I created a menu using categories, and when I click on one and end up on a category page that has a "Category : ..." title. I would like to remove that title so that ...
6
votes
4answers
22k views

Limit the word count in the post title

Is there a way to limit the word count of the post title? I searched over the internet but found nothing. All I know is, only the content of the post can be limited or excerpted.
0
votes
1answer
49 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
1answer
679 views

post_title in save_post action

I use save_post action to save meta field and to check if post title is set. So I check the value returned by empty($post->post_title) but I get true also if I set the title.
0
votes
2answers
503 views

Yoast SEO breadcrumbs: how to create a filter that uses the url slug for breadcrumb titles

I know we can manually edit the breadcrumb title for a page or post using Yoast SEO's breadcrumb functionality. But with thousands of posts and pages on an existing site this isn't desirable. My ...
0
votes
2answers
1k views

How to disable Publish button on Edit post if post title exists

I want to ask a question: I have a source code, it only works for the post-new, but not edit post. So how to disable Publish button on Edit post if post title exists? add_action('wp_ajax_check-posts-...
1
vote
1answer
1k views

Get rid of title from static front page

I don't have an image logo header yet, rather, I'm just using one of my 'Pages' as my static front page. It's title is "Welcome" So now, 'Welcome" and links to it are appearing in three places: at ...
6
votes
5answers
16k 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(); ?>&...
1
vote
2answers
2k views

Wp query orderby 'title' doesn't work

I would like to order a list of post title alphabetically. I am using this specific query // WP_Query arguments $args = array( 'category_name' => 'reportage', 'order' =&...
1
vote
2answers
26k views

query_posts doesn't order by title

It seems like stupid bug, but how can i order by title? It anyways orders by date! I'm using: query_posts( array( 'post_type' => 'page', 'posts_per_page' => -1, 'orderby' ...
1
vote
1answer
919 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 bit ...
0
votes
0answers
11 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-...
1
vote
1answer
520 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 ...
0
votes
1answer
29 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
7 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 ...
1
vote
1answer
961 views

Blog Title not showing up on main Blog page

I cannot get the main blog page with the current blog to show the current blog title. It shows on all other pages, just not the current/most recent blog. Any help will be greatly appreciated. Thank ...
0
votes
1answer
801 views

How to get the meta title of a page configured as blog (loop)

I'm using a function to print the titles for every type of content. I also configured a new metabox in the posts and pages to enter the title tag. This is part of the function to print the titles: //...
0
votes
1answer
47 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 ...
0
votes
5answers
2k 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
905 views

Apostrophe and hyphen removed from title

I have a site where any Title of a Post that has an apostrophe or a hyphen ends up displaying to the site visitor as if those characters were not there. My permalinks are functioning just fine so I ...
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
2answers
709 views

Add Image Before Posts Entry Title

This code adds the image before all titles on the page. How do i add one single image before the posts entry title? function adt_abovetitle($title){ //Return new title if called inside loop ...
0
votes
1answer
30 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 ...
2
votes
1answer
521 views

How to display dynamic content in start_lvl function

I am creating a custom nav walker but having trouble outputting parent menu item title in start_lvl function. I want to output it right after the <div class="dropdown"> in the following ...
1
vote
1answer
499 views

Uppercase to sentence case for post titles

I have more than 7500 products in woocommerce with TITLES IN UPPERCASE. I'd like to change these to "Sentence case" What would be the best way to apply the script to all titles in the WordPress ...

1
2 3 4 5
13