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
52 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
44 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
47 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
1answer
234 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
250 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
37 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
326 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; ...
0
votes
0answers
37 views

Need to replace some text string on a title

we are using Bridge theme in Wordpress as a basis for a restaurant menu. This menu has titles of food that in the plugin template (restaurant-menu-list-item.php) are called to be printed on the screen ...
0
votes
1answer
74 views

Create/Set Category as Title of Post

I am fairly new to PHP. I wanted a code snippet to create post category from the post title. If the post title does exists as a category, then assign the post to that category. If the category doesn't ...
3
votes
2answers
111 views

Don't replace “|” with Empty String (“”) when generating slugs from title

I work for an architecture company and our project names mostly go like this: house|something, bridge|somewhere, building|whatever. Now, when I want to add a new project named like that, WordPress ...
0
votes
2answers
36 views

How to add publish date in the title

I learned a solution from https://stackoverflow.com/questions/36671203/wordpress-publish-date-shortcode Although it can show the publish in the title, in the source code, it still shows the shortcode ...
1
vote
0answers
51 views

Get all posts with a duplicate name

I am running an import script which adds a large number of product post types. Some of these are identical apart from perhaps a size or colour value in the CSV. My script creates the new post types (...
-1
votes
2answers
118 views

How to add … after a particular word/character limit to the title

I am working on a php code as shown below: <div class="case-breaking__content"> <p><?php echo the_title(); ?></p> </div> The above php code returns the ...
0
votes
2answers
35 views

Why in my query is display two title?

I have a quite specific problem, I created a query that currently has to display the first post differently from the rest and everything seemed to work, but there is a problem that displays the title ...
0
votes
0answers
30 views

How to filter page title for certain page?

I have saved in DB in options an ID of certain page. I wanna use that ID to filter corresponding page title and add a postfix in pages overview as follow. So for example to add postfix "- My Chosen ...
0
votes
1answer
30 views

How can I override the post title when a post is set to sticky? [closed]

I want to display my selected post as top post which will appear in the top of my post list. I use sticky post for this, but there is a problem in the sticky post option. It shows selected post at the ...
0
votes
0answers
72 views

Remove title bar from post-new.php

I want to remove post title bar form the admin area. So that the users can't add title. Users will be able to add description only. How can I do this?
0
votes
1answer
49 views

Update all WordPress posts's title and content then display them in a table

I am trying to update all the WP post title and content then show the just updated post to a table. I am using the following code but it does not work: $args = array( 'post_type' => 'post', '...
0
votes
1answer
81 views

change title page on search result

I want to change in my search result the title. Unfortunately I don't have option to change this in , because I must do it in plugin file. Actually I have that code in PHP file: if (isset($_GET['...
0
votes
1answer
41 views

Loop doesn't show title of second post and posts thereafter

I have a problem with my code, somehow. It worked fine before and now it seems that Wordpress does not show the title of the second blog posts (only the first blog post seems to work fine really, ...
1
vote
2answers
321 views

Wrap h1-h6 in a div

So, I am using heading tags h1-h6 on my site in various places, what I'd like to do is put a div around those tags using a WP function. Right now I am using some jQuery to get the job done, but I'm ...
0
votes
1answer
211 views

How to remove Nav-Menu tooltips? (Wp-Globus plugin)

I would like to remove all tooltips from my nav-menu, as it cannot detect in which language the title is. I used Wp-Globus plugin for a multi-language site and this issue came after creating the sites ...
0
votes
1answer
31 views

Site title not showing. Please help me

Please help me, My WordPress site's title not showing. It's just displaying the domain like, www.example.com. site: https://happyygarden.com Please check my site code and suggest how to display the ...
0
votes
0answers
32 views

long-title posts do not want published

long title posts do not want published, when I click on published (not function) always on draft. For example: The title 'Le général sorti un badge et se dirigea vers l’une des portes entourées de ...
-1
votes
1answer
76 views

Auto append text after the title?

Original Title -> Original Title - Lorem ipsum How can I do this with hard code? I want this to stop people that web scrape my web without giving credit and making money off my posts from their ads ...
1
vote
1answer
64 views

Remove the first 5 characters of the_title and orderby that

I have a custom post type where all titles are dates (in this format: YYYY-MM-DD). I need to order them by month then day, but not at all by year. So I imagine I need a filter to 'look' 5 characters ...
0
votes
2answers
27 views

Delete page titles

I'm making a website with the Primer theme, and it includes a big bar with the title in huge letters across every page. I prefer the titles be in the body of the post, so I want to delete the title ...
0
votes
2answers
47 views

How to automatically load an image inside the post, since it is present in uploads folder

I´d like to automatically load three images inside all posts (via single.php), always in the same div (.acf_imgs-centro1). The idea is that the images are uploaded into uploads folder, with the same ...
5
votes
2answers
812 views

Set Post Title to Read-only and Disable Permalink Slug Editor in Gutenberg

When using Gutenberg I would like to disable all users except administrator from being able to edit a post's title even though I want to allow them to edit the post, and I would like to disable the ...
0
votes
1answer
64 views

disallow publish posts with special title

I want to disallow some titles on wordpress and avoid publishing these posts. example : "title : last news 8 hours ago" When this sentence is in the post title, I want disallow publish the post. ...
0
votes
1answer
63 views

Title tag come up differently on search results

When I Google our company's name I get a much shorter title tag then when I search for a keyword that we rank for. The correct title tag shows when I look for our company through keywords but not when ...
1
vote
1answer
59 views

Automatically add words if duplicate post titles

i have two post duplicate Post Titles: "Love Story". i want code Automatically add a random words if Duplicate Post Titles, like post 2 duplicate Titles ==> auto change post 2 titles like: "Love ...
0
votes
0answers
19 views

Unable to Change Title in WordPress Dashboard

I am unable to make any changes to my title tag. When I put the cursor on the Title place it automatically hides. I tried to change it through Yoast SEO plugin but still, it is not working. Kindly ...
0
votes
2answers
42 views

how can i remove page title on desktop view

i have a problem with my woocommerce, I cant remove the page title in the product on desktop view. Anyone know what can i do ? thank you very much store https://kingsport.ro
0
votes
1answer
116 views

How to include a query_vars value in document_title_parts?

I have a page template, used on a single page, which takes URL string parameters like this... http://www.example.com/mypage?tags=Publishing Facilitated like this... // Inherit the meta target ...
0
votes
2answers
66 views

Print post title with markup

I have a piece of code that outputs my post title but how can I output it as an H4? Here is the code I have: <?php echo get_the_title( $post_id ); ?> Thanks
-1
votes
1answer
642 views

How do I remove the dash (-) between my Site Title and Tagline?

I want my site logo to look like the second image rather than the first. However, when I do the settings in the second image, the site is displayed as "Example - Site" in bookmarks and Google search ...
0
votes
0answers
21 views

How do you change the title of the Edit Post page?

When editing a post if I look at the title of the tab, it says: Edit Post < username -- WordPress When you've got a lot of tabs open that's not very useful. More useful would be something like: ...
0
votes
0answers
30 views

How to get page title (<title></title>) in a different order?

I am trying to figure out, how to change the current order of the page title (displayed on the tab or browser windows). Currently, it is <page_title> - <site_title>. The site title is ...
1
vote
1answer
217 views

How to set the seo title tag on a page by page basis?

I am storing the SEO title with advanced-custom-fields. How do i set the seo title tag within my single-mypost.php template. This is the place where i can call get_field('title_tag'); I tried ...
1
vote
0answers
27 views

Title attributes on Permalinks for posts and products

I need to add title attributes to my wordpress links for new posts, pages and products on a website. This is for the actual post/page/product and not within content. For example if I create a post/...
1
vote
1answer
25 views

Header style different on home and remaining pages

Would it be fairly simple to add different site header and menu styles and assign them to specific pages? I have very basic understanding of how CSS and php work and managed to customise the theme but ...
0
votes
3answers
917 views

How To capitalize The First Letter Of Every Word In The Post Title

Hello i wonder if you can help me. How do you make to post titles capitalize the first letter of every word? Is there a way to do it in wordpress?
0
votes
0answers
293 views

How to display custom seo title before the loop?

So I've optimized one of my archive page title to this add_filter('wpseo_title', 'new_filter_title'); function new_filter_title($title) { if ( is_page('1637') && $...
0
votes
1answer
117 views

remove the title attribute from links [closed]

I'm looking for a way to remove the title attribute from links. There is a old plugin but it breaks the site. The title I would like to remove is in the sidebar widget. Thats the code of the widget ...
0
votes
1answer
173 views

Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”

I want to change a meta-box title on the create question page from- "LearnDash Quiz Settings" to "Quiz Settings" on create question page. I have seen a few posts that explain changing custom posts ...
1
vote
1answer
107 views

Is possible add icon in title posts only in specific tag?

I want to add an icon in title posts only in posts with specific tag. Is this possible? I've already tried these codes, but they didn't solve my problem: Approach #1 if (is_tag('162')) { ...
0
votes
1answer
693 views

Set category page title in custom theme [closed]

I'm new in wordpress. I am using one custom theme and install in wordpress. I want to change category page title and remove "Category:" prefix from title. How can I manage it from admin ? I don't ...

1
2
3 4 5
13