The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
19 views

get_post_field - Title without paragraph

Normally I wouldn't insert a single post with a technique like this, but sadly this project requires it. I try to call the post_title with: echo apply_filters( 'the_content', get_post_field( ...
0
votes
0answers
31 views

How do I modify CPT titles?

New to CPTs, I've an issue with the titles of some I've just created. My blog posts are within /notes/ and so the CPTs have 'with_front' => false' for the slug. But the titles are prepended by ...
3
votes
2answers
2k views

How to remove title attribute from gallery links and images

I want to remove the title attribute from within the output of a [gallery] shortcode e.g. <a href="url" title="bobby"> <img src="url" title="bobby"/> </a> should be: ...
0
votes
1answer
60 views

Homepage meta title and description not showing in search engines?

I have just launched a new website and have been having trouble locating it anywhere on search engines, so I decided to do a google search for "site:mysitename.com" to show all of the results from my ...
1
vote
2answers
24 views

Part of title duplicating but not sure how to remove from code - help?

I inherited a problem that no one in my office can figure out. Our company website has page titles in the format of "Page Name Company Name - Company Name." The first instance of Company Name is a ...
3
votes
4answers
983 views

How I check if the same post slug has not been used before publishing?

For an indie rock agenda I created event posts. With the help of javascript, the custom fields values (bands, places and date info picked in select boxes) are copied as the post title when publishing ...
1
vote
1answer
28 views

Add anchor text to php

I am using this code to display a list of child pages of a parent: <?php global $post; // Setup the global variable $post if ( is_page() && $post->post_parent ) { // Make sure we ...
5
votes
2answers
3k views

Is there any way to dynamically alter widget titles?

I have a case where that are a lot of widgets in several custom sidebars. I am wondering if there is a simple way to alter the titles of each widget dynamically. Typically a widget has a title field ...
0
votes
0answers
23 views

Issues with title-tag and document_title_parts

Wordpress version 4.5.1 I'm trying to dynamically update page titles on a particular template. After lots of digging and learning about the wp_title() changes, I'm attempting to use ...
0
votes
1answer
994 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
2answers
930 views

how to remove the default title of Categories widget

hi i'm using the Categories widget show hierarchy. I leave the space for title because I don't need to show any title. but it then displays on the website as "Categories". how can I remove that?
0
votes
1answer
29 views

How to customize search result page title?

I would like to customize the page title of the search result page: from: <title>Search Results for “search string” – Page 2 – Sitename</title> to: <title>“search string” result ...
5
votes
2answers
804 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.
0
votes
1answer
25 views

How to get the title of the random images from media library?

I am displaying random images in my homepage. My problem is, I can't get the title of the images to show in lightbox. Here are my codes. Codes that gets the images from the media library function ...
0
votes
2answers
72 views

Change auto post title generation according to different post properties

I have the following snippet that allows me to auto generate the post title. I'd like to change the $post_type of the 'post_title' => $post_type . ' Job #' . $post_id line to some other post ...
-3
votes
1answer
20 views

How remove “recent comments” title without modifying code? [closed]

How remove "recent comments" title without modifying code? I have already disabled comments and do not wish to see that title.
0
votes
0answers
20 views

Filtering title in BuddyPress

I'm working on filtering titles for BuddyPress pages (specifically, Groups and Group Forums). I'm having some trouble so maybe someone can point me in the right direction Since 4.1, WordPress has ...
-1
votes
1answer
29 views

Rename file after title , one small problem

I'm using this question: Change Attachment Filename which works but it has a problem. He renames every file with FileNameToRename and it's same image. What I want to do is instead of FileNameToRename ...
1
vote
1answer
57 views

Cannot update WordPress General Settings Site Title and Tagline

I have a WordPress 4.4.2 installation with no SEO plugins at all. The plugins that I do have activated are WooCommerce, WooCommerce Multilingual, and WPML. I am unable to update the Site Title and ...
0
votes
2answers
52 views

Display image title and caption inside a single post

I want to display image title and caption inside a <p> tag in single post in the_content() function for every image that has one. So for example if I add gallery, and define title for every ...
0
votes
1answer
61 views

How to add span on WordPress Title for first and third word

I need to know how to add a span to title post, not only for 1 word, but 2 or 3 words as I need. For example I have a normal title like this: Lorem ipsum dolor sitamet consectetur adipiscing I ...
0
votes
1answer
55 views

How to modify title tag in a plugin?

I would like to add a meta value to the title <title> tag in a custom post typed page. So there would be meta value before normal post title. I have a custom field created that contains the ...
0
votes
1answer
31 views

How can I prevent the Search Results Page from changing title?

I am trying to add the search feature to our site. I have the search feature located in the desired position on the page so I'm happy with that. My problem is that when the results are displayed, ...
0
votes
1answer
60 views

How to append to title via functions.php for auto-posting plugin [duplicate]

What I've got so far I've finally got the functions.php plugin to append a string to custom post titles of a certain post type with this function: function append_album_review_to_title( $title ) { ...
0
votes
1answer
47 views

How to auto update post title and slug with category name when post status is updated

I need to auto update post title and slug with category name every time when post status is updated. Some function like this but with the correct code.... ...
3
votes
1answer
115 views

Display all posts with same title

I'm trying to display in a sidebar php widget, all posts with same post_title in a specific category. I find this code on internet but don't how to use it Thanks for your help. function ...
0
votes
0answers
25 views

Post title replacement

How do I change many post title only which are in drafts. I need to replace a list of words with another. I'm using latest WordPress version 3.9.2
0
votes
2answers
67 views

Auto update post title and slug when post status is changed

I need help. Thanks in advance. I need a function that update post title and slug with some default title + current date when post status is updated from draft to published. I use this one to update ...
0
votes
0answers
32 views

Article posted in multiple categories but show wrong title

I have an article which is posted in multiple categories and I put those categories in a menu, but when I call the category, the title always shows the first category (ascending alphabetical order). ...
0
votes
0answers
28 views

Get first title post from an author

I want to display first title post from an author on my loop with this code: <?php $number = $count_post; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ...
4
votes
3answers
193 views

Remove description from <title> on Home

My theme has support for title-tag add_theme_support('title-tag'), but I can't remove the wordpress description bloginfo('description') from <title> on Home page. I'm trying using this filter ...
0
votes
1answer
34 views

Hide title in Merlin Theme on posts and pages only

I'm trying to figure out how to hide a post and page titles while on the specific post or page, but NOT throughout the entire site. I've tried hiding the .entry-title class, but that hides titles ...
1
vote
1answer
127 views

Editing Header Titles of each details in woocommerce Order Email [closed]

I'm using flatsome theme, woocommerce plugin. On my thank you page I get the bank details, order details and customer details etc. but on customer order email, header TITLES of those details are ...
0
votes
2answers
719 views

How to I make my post title link to a custom field

I have a custom field in my posts called post_bookmark_url which contains a link. I want the post title that is displayed in the excerpts on my home page to link to the post_bookmark_url rather than ...
4
votes
4answers
6k views

Force post slug to be auto generated from title on save

I'm running a property site where many properties are sold in apartment blocks. Because of this what the content editors do is create a post/property with all the details and then use a duplicate ...
3
votes
2answers
54 views

What is the impact if i ignore title and content in my custom post types CPT?

I am using CPTs (with PODS) and i need to "ignore" in "supports" the title and content. I have no problem to alter the columns in the admin manage CPT list. Also i understand that the standard ...
7
votes
3answers
6k 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 ...
0
votes
0answers
10 views

How to fix the format of entry pages with thumbnail images?

I am trying to make the entry posts with a thumbnail image to the left, and title above the excerpt of the article to the right of the thumbnail, but aligned with it. Currently, the thumbnail is below ...
0
votes
1answer
61 views

How to display alt tags in img src?

I'm working off a custom theme which they entirely left out including the alt tag in the img source. Here is an example of the code: <img src="<?php echo get_field('image')['sizes']['large']; ...
3
votes
2answers
3k 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
29 views

Add the title attribute to links

I want to add a title attribute to my link like this: <a href="#" title="here is the title">LINK</a> I know how to do this in html but I can't expect this from my users. I can't find ...
4
votes
1answer
4k views

Using php to overwrite or replace title tag, while using yoast [closed]

I use yoast for my seo, indexing, title, sitemap etc. But I have one issue, for my product pages I want to use costum taxonomy data and yoast doesnt support that. Now I got the code to echo the exact ...
0
votes
1answer
63 views

How to remove category titles?

When I go into certain categories, there is a page title that says "Category: category_name", like this: I would like to remove the "Category" from that title. I've already looked around quite a ...
0
votes
1answer
39 views

Wordpress title as keywords (tags) with excluded stop words

How to change normal sentence WordPress title to "tag like" list with excluded "stop words". Example: "This is one test post title about something." To: "one, test, post, title, something" This ...
0
votes
1answer
177 views

How remove woocommerce title on category page only by PHP

How to remove woocommerce title on category pages only (by PHP) and keep rest of titles (on search result page for example) visible? thx
0
votes
1answer
33 views

Filter page title (displayed in browser tab) of wp-login

For wp-login.php, the default page title, as displayed in the browser tab, is "Log In". I need to change this value using a filter in functions.php. Every solution I've read addresses the header ...
0
votes
0answers
26 views

How to tell where <title> tag is being pulled from

I'm working on a site, http://vibrantnation.com, and the meta info is jacked. I've looked in .header.php of both the child and parent theme, and it looks OK. I've checked plugins, like Yoasts' SEO ...
0
votes
2answers
772 views

Displaying Page Title on index.php

I have my posts page set as index.php, and on there I have my main heading (as I do on all pages). I'm having trouble displaying the page's heading however. The page is called 'Blog' in WordPress, ...
1
vote
1answer
40 views

Set post title based on first h2 element in the content section

I have a front end editor set up for users to create posts and I would like to make it as simple as possible to create posts with the least amount of fields involved. Is it possible to generate the ...
7
votes
1answer
101 views

Prevent WordPress from adding image' title automatically

I wrote a plugin that set default title for all non-set (empty) titles and leaves the titles set manually (non-empty). The problem is when I upload new photos (to gallery), WordPress by default set ...