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
1answer
21 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
32 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
10 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
24 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 ...
0
votes
1answer
46 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
23 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
18 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
25 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
15 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
9 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? ...
0
votes
0answers
10 views

WordPress My Account Title and text color change

I am looking to change the colors of the “My Account” page text and title. I found how to change the links and user name but the other text and title do not change. Does anyone know how to change ...
0
votes
0answers
15 views

Insert page title variable in body of wordpress page [duplicate]

I want to refer to the title of the page in the content of my page and I need to do it in 1000's of pages in my Wordpress website. So instead of copying and pasting the title of current page into the ...
0
votes
1answer
56 views

How do I modify the size of the text in my page titles?

Sorry for this basic question, but I'm having a hard time editing the size of text for the titles on the pages on my wordpress website. The html is below <h1 class="hero-title"> COVID Visual &...
0
votes
1answer
22 views

How to change default home link title?

This is My home page but the title in the header shows the first post name. How can i change the custom link homepage title ? I want here to show home and in the post header it should show post title?...
0
votes
0answers
13 views

How can I insert an image in the site title (theme: 20 17)?

I have a WordPress site using the theme Twenty Seventeen. I want to insert a tiny image (not a logo) on the right edge of the title. The image isn't much taller than the letters. I couldn't find any ...
0
votes
0answers
18 views

I have added title and a wpeditor in metabox in page below the default editor and main title. But i want custom metabox title to be secondary title?

function custom_meta_box_markup2($post) { global $post; wp_nonce_field( basename(__FILE__ ), 'custom_meta2_nonce'); $custom_stored_meta2 = get_post_meta( $post->ID, 'sec_title', true ); ...
0
votes
0answers
19 views

Edit Gallery captions as titles

On edit media screen been trying to have caption fields replaced with title fields for easier titling of images. Successfully have the caption fields replaced with title fields via jQuery. When ...
0
votes
1answer
30 views

How to display featured image description and title?

I'm displaying a featured image (as a background) in a hero div, and using the caption to add some content from the Media Library automatically. I'd also like to use the image's description field and ...
0
votes
1answer
75 views

get_the_post_thumbnail() title and alt attributes not displaying

I am attempting to display 'alt' and 'title' attributes on a post thumbnail image, but the only attribute that actually displays as passed is 'class'. 'alt' and 'title' are missing. Any ideas what ...
1
vote
1answer
32 views

Replace URL with Site Title in Search Results

When searching my company on a mobile device "Tattini Boots". You can see that the URL is displayed vs. the site title at the top (view image below). I am using Wordpress and was wondering where ...
0
votes
0answers
62 views

Want to add new label in new post

I have 3 different custom post types (news, job, result ,) When I post something new under any of them, I want "new" label or gif for a limited time in title . Am already try that one which am ...
0
votes
1answer
111 views

Replace image name on upload to the new post name on front-end form

I'm using this form to replace featured images and post title on my frontend form: <form id="featured_upload" name="featured_upload" method="post" action="#" enctype="multipart/form-data"> <...
0
votes
1answer
40 views

Edit the post title from the frontend

I have this form that allows-me to change some things of the current post in my frontend: <form id="featured_upload" name="featured_upload" method="post" action="#" enctype="multipart/form-data"&...
0
votes
0answers
12 views

Hide posts with same title

As, I have to fetch RSS Feed and it will fetch some feed with duplicates so i want to hide them. As, I want to hide those feed which have same post title.Is there any way to do that.
0
votes
0answers
11 views

Woocommerce 3.8.0 cannot add title to new product after update

After updating to the above version we cannot create new products because there is no input field for product titles. Existing products created before the update contain titles, but these cannot be ...
1
vote
0answers
27 views

Applying A Category to Existing Posts Where Page Title Matches Regex

I have a whole bunch of posts that I need to add a category to (too many to do via Bulk Actions). They all follow a predictable/consistent post title naming structure that could be matched via regex. ...
0
votes
0answers
52 views

Include a page's “category” in its URL

My site is for landing pages, not a blog - so it contains pages, not posts. I want URLs like this: https://www.example.com/shoes/nike-sport-super-red https://www.example.com/shoes/adidas-...
0
votes
1answer
31 views

Page titles for internal classification of landing pages

My wordpress install manages a business site, with landing pages. It's not a blog, and there are no posts (only pages). The "pages" page (Pages > All Pages), which shows draft/published pages, ...
-1
votes
1answer
11 views

reformat entry-title with two different styles

I would like to apply two different styles for entry-title meaning i.e. "my services: this big" "my services:" should appear with default font size "This Big" should appear with bigger font size ...
1
vote
2answers
39 views

Replace “WordPress” word in title of Dashboard

I would like to replace the WordPress word in title of Dashboard. Original title: Dashboard < Site Title - WordPress Expected result: Dashboard < Site Title - foobar I tried to do this with ...
0
votes
0answers
13 views

wordpress page title (html title tag)

First of all, I am working on a website that is using flywheel for its hosting. I develop the theme locally then push the changes via sftp to the staging server and then from there to production. ...
0
votes
0answers
13 views

How to prevent filling out the “title” field when uploading files?

How to prevent WordPress from automatically filling out the "title" field when uploading files. Not when pasting an image into content, namely when the image is uploaded to WordPress itself.
0
votes
2answers
333 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
22 views

How do I Name a WP page in the New(ish) Block Editor?

I'm building a custom theme and it's my first time doing this with the new(ish) block editor. Can I ask - where on earth to add the page title in the backend block editor? In the old editor you just ...
0
votes
0answers
48 views

Widget title showing below widget

I added a widget area to my sidebar using the following code. The area shows up fine, and I can add widgets which also show up and work fine. The problem I am having is if I add a title to the Widget, ...
1
vote
3answers
493 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 ...
0
votes
0answers
94 views

How to allow dot(.) in slug for custom pages

For this question, I googled and found 2 results. But what I want to do is allow dots in slugs for some pages only. I found results are showing to add a function to function.php file. But it will ...
0
votes
0answers
45 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
22 views

About title on a page

I would like to know how can I change the title of my page to be just "FinanzasYa" instead of "Category ArchiveFinanzasYa"
0
votes
2answers
40 views

How can I get the custom post title?

I need to get the title from my custom post but its showing from my default post. here is my code. please help.
0
votes
0answers
46 views

How to swap text in menu item back and forth?

My article can be titled in two seemingly unrelated titles. Therefore, having the title swapping back and forth would be a cool feature. I suppose the effect would be crossfaded. The duration of the ...
0
votes
0answers
24 views

Help needed with category and title in header

First i am abit in wordpress , but anyway i am trying to show the page category and page title in my header.php . Like this below But here is the thing , what I like to know is there away to iether ...
0
votes
1answer
189 views

Change/Set Page Title and Meta Tags from Page Called within a Plugin

I'm using a set of query vars and rewrite rules to load a new page. My final call to the page looks like this: add_filter( 'template_include', 'se343855_template_include', 50 ); function ...
0
votes
3answers
214 views

Limit title length

It almost work correctly, but alwas return the same menu name: On home all menu elements name home on contact all menu elements name contact function max_title_length( $title ) { global $post; ...
0
votes
1answer
36 views

Yoast taking over my Wordpress title tag [closed]

I have this code: <h1><?php the_title(); ?></h1> That is meant to display the title of my blog post only. But because Yoast has a SEO title of something else, it is displaying ...
0
votes
1answer
28 views

Run a function on all posts

I have a function where I am counting letters in a title and adding that _product_meta_title key, everything is working fine when I am adding a new product but I have 500 products that don't have this ...
2
votes
1answer
298 views

Dynamically update post title in admin page

I have a textarea in admin post page when creating new post, that's title: <textarea id="post-title-0" class="editor-post-title__input" placeholder="Add title" rows="1" style="overflow: hidden; ...

1
2 3 4 5
13