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
19 views

How do you keep the title of a post. to NOT show when publishing the post?

There is one post, in fact is the first post I have, and I do not know how to make the post title from not showing. I have tried using various plugins from the WordPress repository and none of them ...
0
votes
1answer
27 views

How To Keep Search Title the same on paged Results

I have a small issue: The search results page returns perfectly my crafted title, but the problem i am facing is that the title changes on paged results. If results are all on page then its fine, if ...
2
votes
0answers
34 views

How to add a custom field after wp post

I want a subtitle box after the title. How to show it in the post editor?
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
196 views

My posts page is missing the page title

I cannot for the life of me figure out why a title is not showing up on my blog page. I want to be able to have a title and maybe even some descriptive text below instead of just jumping into the ...
0
votes
1answer
51 views

Reduce size of responsive title

When using a mobile device or a tablet, the titles of my products are cropped. I'd like to simply reduce their size. Take a look to the image: Is there a way to change that? Is it CSS or Php? The ...
0
votes
2answers
74 views

Hiding title of selected post without plugins

I'm using the Enigma theme in my webpage and I want to hide the title of some posts without using any plugins. Every tutorial I find on the internet teaches me how to do it in a incompatible way for ...
1
vote
1answer
213 views

Combine get_page_by_title to exclude pages from wp_list_pages

I am using get_page_by_title to exclude a few pages from wp_list_pages, my code looks like: <?php $page1 = get_page_by_title('title1'); $page2 = get_page_by_title('title2'); ...
1
vote
2answers
755 views

get_page_by_title with an apostrophe in variable

I'm having some trouble creating a shortcode that queries some posts. This is the basics of my code: function shortcode_equipment($atts, $content = null) { $equipment = get_page_by_title($content,...
0
votes
1answer
150 views

get_the_archive_title hook unwanted changes!

I use get_the_archive_title hook to add a link to my blog tags and categories archives pages. https://developer.wordpress.org/reference/hooks/get_the_archive_title/ I just get the title and filter ...
0
votes
1answer
94 views

Custom title when using shortcode

I found this code to have a custom title on WordPress add_filter( 'pre_get_document_title', 'myFilterTitle', 10, 1); function myFilterTitle($myTitle) { return "$myTitle here"; } and some ...
1
vote
1answer
119 views

Can not set custom title on some WordPress setups

I'm having a bit of an issue changing the title on a custom page. Most the time the standard code works, but for whatever reason on certain WordPress setups I am unable to change the default title. ...
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
389 views

Print title page in header of a specific page

I'm trying to customize Avada template. I want to print in the header the page title, but only for specific pages. So I tried in header.php <head> <?php if ( page_is('80') ) { echo ...
0
votes
0answers
16 views

2 Domains, Same Content, Different Titles?

Hi just wondering if this is at all possible for example: You can access through A.com or B.com but the titles of the page change accordingly, so if you were on home on A.com the title and google ...
0
votes
1answer
49 views

Change font and Colours in Menus

I am new to WP and hoping to get some help. I am well on the way to building my new website, but have some small detail issues. I would like to change the font, size and colour of my Menu titles, and ...
0
votes
1answer
102 views

WordPress Title Tag Not Changing

I'm working on my WordPress testing website and I'm trying to change the title tag to the very short hyphen. (-) I've added a code into the functions.php file that allows me to change the title tag. ...
1
vote
1answer
300 views

How to sanitize post title with commas

I need to sanitize WordPress title with commas that is using commas to replace the spaces. i used this but didn't worked for me echo sanitize_title_with_commas("the_title"); What i mean is: if ...
1
vote
2answers
5k views

Change title only in dynamic page

I've been trying to change the title in a dynamic page without any luck. What I did is I created two page-templates from where I load items (occasions) from an external database. In one page-template ...
0
votes
1answer
31 views

Use of domain name

You may have to excuse my ignorance and lack of knowledge, I am totally new to WP. I need a new website, and I went to Register365 and bought my domain name. I had intended to use their "build your ...
0
votes
1answer
7k views

Category name as page title

I'm using a theme from Envato Market (Painting). What I need to do is to replace a generic page title which is displayed when I open a category page from Shop or Portfolio, with the actual name of the ...
0
votes
2answers
184 views

Change Post Title For Specific Category

please I need help with this code add_action( 'the_title', 'adddd', 10, 2 ); function adddd( $title, $post_id ) { if( has_category( 30, $post_id ) ) { $title = 'Prefix ' . $title; } ...
1
vote
1answer
2k views

How to change tab's title in search results pages? [closed]

I succeeded in changing the "Results for:" part above the search results, but I can't seem to find how to change the text of the title of the page which is displayed in the tab of the browser. Sadly, ...
1
vote
2answers
292 views

Save title as custom field on custom post type

I need to have a hidden custom field that will be automatically populated with the title of the post on save. My goal is to query posts by all its meta fields, including the title, but from my ...
0
votes
1answer
33 views

Post Category link is same with Page link

Right now, our posts category is displayed as: /[category-name]. So when we have a post category named "Matcha" and a page named "Matcha", they have the same links and http://sitename.com/matcha ...
0
votes
1answer
1k views

How do I edit the <title> tag without using the deprecated `wp_title()` function?

How do I edit the tag without using the deprecated wp_title() function? I need to add a microdata parameter - itemprop="name" -, as seen in the example below: <head itemscope itemtype="http://...
1
vote
1answer
340 views

Display custom post type title as text if post thumbnail is not available

Im a little hung up here. I'm trying to write an if else statement to show either the thumbnail if its present, and if its not, show the post title. Here is my code: <div id="primary" class="col-...
1
vote
2answers
3k views

Get widget Title from widget id

Is there anyway at all to get the title of a widget from the widget id? The post title can be used by using get_the_title() Is there a way to get the title for a widget using the same kind or ...
-1
votes
1answer
23 views

Is it possible to keep the page title from actually appearing at the top of the page?

I want the pages named and not left blank for organizational purposes, but can I keep the titles from actually showing up on the page? I've looked everywhere.
0
votes
2answers
115 views

Do shortcodes in title before permalink is generated

I need a special behavior in the title, so I use shortcodes there, the display is fine (I just use filters the_title&single_post_title), however when permalink is generated, the shortcode stays ...
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
1answer
3k views

WP_Query by keyword OR post tag

Is there any 'native' way to query by keyword or post tag? If not, how can I write a GOOD SQL query to retrieve the data correctly? Thanks in advance!
1
vote
2answers
915 views

Remove Title of youtube video

How can i put a youtube video on my post without show the default title from youtube? I tried to put this code in the theme´s functions, but not worked. function remove_youtube_controls($code){ ...
0
votes
1answer
469 views

How to give titles to custom post type as “unique” incremental number?

I have a custom post type called 'Customers'. Data is taken using a front end form, which is then saved into the post type. But I want the titles to be automatically generated as unique incremental ...
2
votes
2answers
53 views

Add Descriptive text to Widget text box so users can see what they contain

If you have like 20 text box widgets and you are using widget logic or something to selectively display them on various pages, it gets confusing what content is in each box IF you are not using the ...
1
vote
1answer
48 views

Locating Global Variables

I am now the admin of our company site using Wordpress. We'd like to change some things on the home page, but unfortunately the items we want to change seem to be built in to the theme. I want to ...
0
votes
2answers
855 views

add_theme_support( 'title_tag' ) is not showing title on index.php

i'm developing a theme. I read there that themes should have the support to title tags declaring it in functions.php. I did so, together with removing any title in head.php, but my index has no title. ...
3
votes
1answer
880 views

the_title filter applying to menu items

I want to create a simple function to call the logged-in user's username along with the word "Wishlist". It seems to be working but it also changes the menu item titles! function ...
3
votes
1answer
2k views

REQUIRED: The theme must not used the <title> tags. | REQUIRED: The theme must not call to wp_title()

I am getting these three warnings while running the theme-check plugin. REQUIRED: The theme must not used the <title> tags. REQUIRED: The theme must not call to wp_title(). REQUIRED:...
1
vote
1answer
95 views

Widgets not adding div on before and after title

I'm trying to get a wrapper around my h3 widget title, because i want to give the h3 a vertical align bottom. Currently i'm registering my widget as following: function usp_widgets_init(){ if (...
0
votes
1answer
409 views

Add acf field in title (admin table)

I want to add an ACF field in my post title, only on admin table (not in the title field stored in database), and only for a specific Custom Post Type. Some of my posts have the same name, so it will ...
3
votes
1answer
1k views

Filter Widget Title Wrap

This code i wrote works but it doesn't remove the h4 add_filter( 'widget_title','modify_text_widget_title_tags', 10, 3 ); function modify_text_widget_title_tags( $title, $instance, $id_base ) { ...
1
vote
3answers
2k views

Change separators in HTML <title></title> tags

I'm using WP 4.7.3 and a custom template set (mh-magazine). By default, WP sets a title tag like "Page title" - "Blog title". Now all I want to achieve is to replace "-" into a pipe symbol for ...
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 ...
0
votes
1answer
178 views

Split site title and apply different classes

I'm currently designing a theme using Underscores and I want to do something like this with the site's title: Thisisthetitle So the title is all one word and the last five characters are different ...
0
votes
1answer
496 views

How can I insert a shortcode in the title tag of another?

//Shortcode which return a name [get_name] //A heading of the theme. I need text + shortcode in title="" [dt_fancy_title title="My name: [get_name]"] //I tried this but it doesn´t work [dt_fancy_title ...
0
votes
2answers
4k views

Where does Yoast SEO plugin sets the site/page title?

I am running on WP 4.7.2 and Yoast SEO 4.4. I want to append a PHP variable to all titles. But it seems I am not able to do that. I have read that wp_title used to be the method before WP 4.4, then ...
5
votes
2answers
1k views

Problem in wordpress with “-”

I have problem in Wordpress after migrating my website. In title tag (<title>) I have "&#8211;" instead of "-" For the browser it's good, in the title it shows good. But in html code is "&...
2
votes
0answers
32 views

How to filter out post type meta?

I have used this code to filter out the post type and it works fine when showing filtered results: add_filter('wpseo_title', 'vehicle_listing_title'); function vehicle_listing_title( $title ) { ...
0
votes
3answers
635 views

Error [Column 'post_title' cannot be null] when title is disabled for Custom post type

I am creating a custom post type for a front-end slider. It takes the value entered into a custom field and uses it as post-title. It works perfectly on my localhost and on my personal host. However, ...

1 2 3
4
5
13