The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
8 views

Custom Post Type Title Placeholder [duplicate]

Is it possible to use custom placeholder for custom post title? I couldn't see any placeholder mentioned in the labels array argument of register_post_type function documentation.
0
votes
1answer
1k views

Custom title widget / HTML encoding

I'm not the first person who has battled the matter of WordPress stripping HTML from widget titles. There are a number of custom widgets out there that allow you to add e.g. links to titles, but I ...
2
votes
3answers
513 views

Title and post URL based on custom fields?

I have custom fields in my custom post type. They should serve as a title and post slug for URL. Basically, whenever I change the content of the custom fields, the title field should react ...
1
vote
1answer
26 views

Add Link Text Back to Insert/edit link Box

Version 4.2.1 of WordPress removed the link text from the Insert/edit link box. How can i add it back?
0
votes
1answer
51 views

How to show posts rank based on custom field value

I have total 100 posts, 10 posts in each page on homepage with paginatin. Here is my code $args = [ 'posts_per_page' => 100, 'fields' => 'ids', // Add additional args here ]; ...
-1
votes
2answers
636 views

Automatically add title attribute to links in WordPress

If I link to an article on a website, is there a way to automatically include a title attribute with the value being the title of the linked page?
2
votes
3answers
423 views

How to make a H1 different then the Title?

What I want to do is... on a per page/post basis I want to be able to have the H1 say something different then the Title... This should be such a simple thing, but I've been looking around for an ...
0
votes
1answer
29 views

Change title in head on Archive page

I'm having problems with figuring out how I can change the title on my archives pages. I now have a title like this: <title>Jobs Archive - The Company</title> But I would like to have a ...
0
votes
1answer
22 views

Change title tag dynamically or within plugin?

I have created a WP plugin which uses the query string to pull in page data based on what the visitor has selected. Obviously this 'simulates' additional pages but the page title does not change from ...
0
votes
0answers
15 views

Creating a Custom Title on a Custom Page Template

Most of our news site is made of WordPress Pages and Posts. Then we have several custom pages that format information from a non-WordPress database. exs. Calendar of Events, Local Nightlife Venues. ...
0
votes
1answer
20 views

Add a non-dynamic phrase/character after a page title?

I have a client that has an idea to add a coma after the main page title. Sure, this sounds simple to do-but it makes the navigation see 'WELCOME,' as well. Basically I am adding a phrase in the same ...
2
votes
1answer
459 views

Auto Add Image Title,Caption,Alt Text,Description while uploading Images in WordPress

Can anyone tell me how to auto fill/add same image title in title, caption, alt text and description while uploading any image in my WordPress Posts.
7
votes
2answers
5k views

Change page title in admin area

Is there someway to change the title in wp-admin? Been looking all over google but no one seem to mention it. I simply want to get rid of "— WordPress" and possibly change the "‹" into ...
1
vote
3answers
905 views

How do we remove the H3 tag for the reply-title I.D

We're doing some SEO tweaking to a site, and our SEO guru informs us that we need to remove the <h3> tags from the #reply-title element, output from line 1554 of comments-template.php. It's the ...
0
votes
1answer
21 views

Variables in post title

How can I make my post title dynamic? Let's say I'm trying to make a post with this title: Today is [day]/[month]/[year] [day] should be parsed into a php code that will retrieve the current day, ...
0
votes
0answers
19 views

Increase Page Title Font Size

Site: http://tkhrepair.com/business-services/ I'm trying to make the font where it says Home / Business Services larger, I wanted it around 16px. I've tried using Inspect Element for find it, but to ...
0
votes
1answer
33 views

How to override the title tag for woocommerce endpoints?

I am trying to set the title tag for Woocommerce pages that have endpoints. I am using Yoast SEO and so far have created this: function woocommerce_endpoint_titles( $title ) { $sep = ' | '; ...
0
votes
0answers
6 views

Page URL that is the same as other but in a different category

Is there anyway to prevent a duplicate post getting assigned a number as it's title despite being in a different category? www.example.com/coca-cola/diet www.example.com/pepsi/diet-2 Both are ...
0
votes
1answer
801 views

Auto save title as custom meta field value

I create a custom post type where I removed the "Title", instead I want to use one of my custom meta value to become the title. This is just to make sure the title look good. Know that the post ...
0
votes
0answers
9 views

Link Post Titles to External URLS

I have a site full of 1000s of newsfeeds. When user clicks on the title, it takes the user to the article page, then the user must click 'read full article' to go to the external url. Is it possible ...
0
votes
2answers
710 views

How to update a custom post title from a front-end form using ACF fields?

So I have a custom post title being written by a front-end (non-admin access) form using AFC fields. What I am after is a way to update the title when the post is updated from the front-end edit form. ...
0
votes
0answers
25 views

Changing page's name after page creation

I have a page, I can't know the name of the page before doing an elaboration with PHP, i thought about changing the page name with javascript after discovering the page name, I have not written the ...
1
vote
1answer
35 views

How to echo a different title to the page if it's opened on an android mobile phone

How do I echo a different title to the page if it's opened on an android mobile phone? I have this function that checks if it's an android: function is_android (){ $browserInfo = ...
0
votes
2answers
87 views

Change Image depending on page path

In my header.php I have the typical header code - this is for woocommerce but the coding has nothing to do with it: <h1 class="page_title"><?php woocommerce_page_title(); ?></h1> ...
1
vote
3answers
32 views

Alter only the page title, not the post titles within

I have a page where, with shortcode, I queried multiple posts from a CPT - so the page is one kind of archive page to the general users. Page Title - CPT Post Title #1 - CPT Post Title #2 - CPT ...
0
votes
0answers
21 views

Setting title in the front end

I am trying to set up posting from the front end. Everything works, but I cannot get the title to set.. Part of code: (Some validation is done beforehand) $title = "abc"; // ADD THE FORM INPUT ...
8
votes
5answers
23k views

query_post by title?

is it possible to create a loop of posts using WP_Query or query_posts using the title? ie $args = array('post_title'='LIKE '.$str.'% '); $res = WP_Query($arg); // the loop... // trying this ...
0
votes
1answer
141 views

dynamically update permalink and title with the values of custom fileds

Im working on an interface for a custom post type where I need the post title to carry the date and venue name. So on the Admin end I've got js that dynamically populate the title as the user fills ...
4
votes
1answer
99 views

What is the use of $page_title and how to use it?

I'm developing a WordPress plugin and added add_menu_page() but not sure what is the use of first parameter $page_title. If this is to use to display page title on the plugin page then how can I do ...
1
vote
2answers
78 views

have WP Gallery display the title instead of caption

OK, I have looked and read quite a few message boards about this problem and I can not seem to find an answer. I am uploading thousands of photos for a photographer and using the WP Gallery ...
1
vote
1answer
33 views

Enqueue and Dequeue from admin bar nodes

I developed a few nodes under my custom parent node on admin bar. While navigating on frontend and clicking on one node I'd like to enqueue some css file. The url should remain. While navigating on ...
3
votes
4answers
166 views

Dynamically add titles to post images if they are empty

I have a client's site where they want to add image title attributes dynamically to images that don't have one already. So if the title attribute is empty, add a title of whatever the post title is. ...
0
votes
1answer
224 views

Custom meta Title for custom post type archive from page

I've set up some custom post types, and created custom archives, eg in the following format: archive-books.php (With a template name of "Books Template"). I then have a page (/books/) created in ...
0
votes
1answer
58 views

Replace text in the Title

In a string displayed by <?php the_title(); ?> I have to replace all & characters with and. Here is the code I've tried without success: <?php $wptitle = the_title(); $wptitle = ...
1
vote
1answer
37 views

Looking for Add Title Tag on Feature Images on WP

I am facing problem with adding title tag on feature images and also thumbnail posts. I tried to find out but not successful to resolve these kinds of issues. Kindly help me please how to add title ...
0
votes
0answers
56 views

the_title() Returns the page title instead of the post

I'm using a custom page for listing my posts, now using the loop and the_title() returns the page title instead of the posts. My loop is a simple: <?php if (have_posts()) : ?> <?php while ...
0
votes
2answers
30 views

How to show show the Second page title in the page

I am using a page hierarchy and I want to show the title of the 2nd parents The structure is something like Main Page Main Page > Second page Main Page > Second page > Third page Main Page > ...
0
votes
1answer
104 views

Display Menu Navigation Label

How to get Navigation Label as should be of the menu I'm using this code <?php $locations = get_registered_nav_menus(); $menus = wp_get_nav_menus(); $menu_locations = ...
0
votes
0answers
14 views

How to trim my title length by characters via php code [duplicate]

I want to trim my title length on related posts and I tried several variations and no one works. I have now this <p style="margin-top:-4px !important"> <a class="title" href="<?php ...
3
votes
1answer
481 views

Two title tags in my header

I'm building a child theme and it currently has a very simple <head> section in header.php: <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta ...
0
votes
1answer
40 views

Why I can not modify the appereance of my title web site in google? [closed]

I have tried everithing I have thought, but I could not solve it. The problem is that when I search my website domain in Google it appears like this: Which is different that the tittle I have ...
0
votes
0answers
17 views

How to auto generate title if no title (empty), using excerpt

I don't know much about php or anything at really. I just moved from tumblr and I have about 800 posts with no post titles which is hurting me. I do know how to place the Excerpt in the tag to ...
0
votes
0answers
80 views

How can I hide post title from Categories menu in side bar?

I hope there is someone who can help me about this. This problem makes me crazy since two days. I added "Categories" widget to my sidebar, I have 3 level categories and the 4th one is blog posts. ...
0
votes
2answers
790 views

How do I display the post_title with get_permalink?

I want to display the post title instead of the link to it with get_permalink. get_permalink($comment->comment_post_ID) only shows the link to the post!
0
votes
1answer
38 views

Comparing pre-saved post_title to post-saved post_title

I'm implementing an inventory updater on a Wordpress product site that integrates with a 3rd-party website via their custom api. We're going to have a number of people updating the 3rd-party website, ...
0
votes
1answer
94 views

Single_cat_title() print the title before text

When I use single_cat_title() get the name of the current category in archive page, it works perfectly but it prints the category title before the text <h2> <?php if ...
0
votes
2answers
229 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 ...
0
votes
1answer
118 views

Get featured image on hover of post title [closed]

I need to get respective featured image on hovering of post title is there any plugin to achieve this I tried geting this by using Js and CSS but failed to achieve.Searched through Googe and WSE too ...
0
votes
0answers
100 views

Get menu item data from menu item ID

I want to filter the_title when I output a custom menu (of internal pages) using wp_nav_menu(). My pages have a custom field called 'short_title', and I want to use these values in my rendered menus ...
0
votes
1answer
143 views

“Maximum function nesting level of '100' reached” after adding a new filter

I am trying to filter my post title for a specific page and when a form is submitted on that page , for this I am trying to filter my title . Here is the code function filter_title_after() { ...