Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I've written a basic function with the goal of altering the page title.
It works.
However, the new string also replaces every single navigation menu item on the page.
At first I thought that might ...
My website theme header.php uses this code:
<title><?php wp_title('‹', true, 'right'); ?></title>
And I'm seeing two <title> tags in the page source.
How can I ...
I am trying to append "DEV SRV:" to the page title (i.e. title tag) if the IP Address matches that of the dev server. I have tried this both in the functions.php file of my child theme and ...
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 ...
I added the title from the customize option field
I am getting
Even in the admin panel at the top, I am getting correct.
But When I check my home page on the browser then I am getting the Home - ...
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', '...
I'm new to wordpress with very limited/low knowledge in coding,
I'm trying to build a faq section for different pages, where I need to insert the page title, post date, author etc. in multiple places. ...
The issue with a title for a page in WordPress for categories (Displaying CategoryName Archives).
If the category is Aptitude then page title shows Aptitude Archives.
How to remove Archives from the ...
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 ...
Currently in header I have the following:
<title>
<?php wp_title(' | ', true, 'right'); ?>
<?php bloginfo('name'); ?>
</title>
I tried adding if statement like the ...
I need to add a custom text in wordpress Post title dynamically which I'm trying to add via this code in function.php
Following code is not working
add_filter('the_title', 'new_title', 10, 2);
...
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 ...
We have statistical website made on elementor which is showing covid-19 cases updated continuously all day similar to https://www.worldometers.info/coronavirus .
This website's page title changes as ...
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 ...
This code snippet shows (prefix) category Name first before the Post title (Very right).
E.g
Music: %Post_title%
Video: %post_title%
Lyrics: %post_title%
News: %post_title%
Lifstyle: %Post_title%.
...
Hello please i need a wordpress function.php code where i can choose how to display my title differently in section wp_title.
E.g.
If home, tag page, Category page, And Pages are viewed then "...
I really can't get the right practices from official docs. I think it's a complete mess.
At some point, they started to say to activate the title-tag feature: after_setup_theme >
add_theme_support('...
I am using the below code:
$title = get_the_title($result->post_id);
if ( 0 === post_exists( $title ) ) {
$title = 'Document Id: '.$result->post_id .' (Deleted)';
}
But it's returning 0 if ...
It recommends that we should use add_theme_support('title-tag') for displaying blog title. However, I also need to get the title as string for another purpose. It's for optimizing SEO. As you already ...
I'm trying to change my custom page's title and I'm able to do this with this function:
add_filter('the_title','change_title');
function change_title($data){
global $post;
return 'Page ID ' . ...
I would like to enclose the 2 first word of title inside a to get the following result:
TOP 5 of best photos
I tried using the code below, but it returns only the first word. How can i do to select ...
I have this command that I'm using. I want it to use the template formating for the title but I can't figure out how to add it. I found this code online to strip everything and I added <?php ...
I'm currently making a custom Wordpress template, and I'm using paginate_link to make page links at the bottom.
index.php
<?php
get_header();
?>
<div class="container">
<div ...
I created a shortcode for creating dynamic pages with the help of API data. If someone changes the page title I also want changes.
Now I have a dynamic page title in a shortcode function, but I need ...
I want to get all the data by wp_query only the first letter of title specific alphabet 'A'.
My code will be like:
$the_query = new WP_Query( array(
'posts_per_page'=>10, ...
in my site category page (archive page), the page title in browser is like this:
My site | Site Description | Category title
How i can add specific word befor all of category title.
like:
My site | ...
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 ...
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.
...
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 ...
For example, the site has a category "News", in which there are 37 posts num.
How to insert into wp_title the number of records (37) in this category.
those, if we go to the "News" category, the ...
What i mean is that.
My categories are:
Music.
Video
Etc...
So i want post title per category to be like this.
Post in music = should be "Download Music: wp_title()"
Post in video = should be "...
My concern is when I search for that company I see what is shown in the image.
Instead of Home, I require it to show a custom title that is good for SEO.
What is the best way to fix this?
Please ...
(WP Post Title)Malwarebytes Anti-Malware (Custom field value)3.5.1.2522
How to add custome meta value in wordpress after wp post title in same hyperlink
I have installed WordPress on the main dame in public HTML and have installed all domains in the sub folder. But when we do Google, the title of the main domain comes in the title of all the domains. ...
I know this question has been asked thousands of times before, but I have attempted a lots of these solutions without any success.
Attempted solutions, among others (added to the template page)
...
I use the Events Made Easy plugin to handle events for a client. Recently while scanning my site for issues, I noticed that I'm getting blasted with duplicate title tags in the "events" pages as they ...
I'm trying to change the order of the title tag and description tag (CMS Wordpress, plugin Yoast SEO). Now in the code of the page it looks like this:
<title>something ...</title>
<...
I have a plugin with an option to use regular expression and find and replace the title post. I need to convert lots of titles with uppercase and lowcase letters to title case, but I have no idea ...
I have a bunch of posts titled something like this...
English Language 2015
English Language 2016
English Language 2017
English Language 2018
And on each one of these posts I have a dropdown select ...
so I wanted to change the <title> head element and found this post: Change the_title() of a page dynamically
I followed and my function now looks like this:
# set title per page
function ...
I am editing the single.php file, and I want post title to appear inside a particular div. Since my theme doesnt show the post title, I want to retrieve the post title on posted article page.
" >
&...
my title appears as home-title, I'm trying to remove but it's not working
code in header.php is
<head>
<title><?php wp_title('|', true, 'right'); ?></title>
<meta ...
I want to display different titles in category archives than the category title.
I have created a function with if statements for this purpose:
function category_titles_change() {
if (...
Someone helped accomplish this code last week which works perfectly, it pulls keywords entered into a custom field ( advanced custom fields ) into the middle of a URL and then redirects them.
Code ...
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 ...
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.