The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
3answers
522 views

Filter to modify post_title after image upload?

When I upload images, Wordpress 3.4.2 sets the Title to the base of the filename, such as "DSCN1234" or "IMG_1234". I'd like the Title to be left blank. The code that sets the Title during the upload ...
5
votes
1answer
7k views

Translate widget titles using qTranslate plugin

I'm actually using the qTranslate plugin to translate my website. It works really well with everything except one thing. the titles of my sidebar widgets. Actually, to translate some words we need to ...
1
vote
2answers
219 views

Testing for post title in 'if/else' statement returns no content

I'm testing for a certain fixed post on an about page, I guessed that the best way is to test for post title (?). Here's my code, what's going wrong? <?php if (is_page()) { ...
0
votes
1answer
409 views

Change post title during post saving process

My theme and Qtranslate plugin have a conflict and cause many issues on my website's post titles. I cannot trace what causes the issue and I thought that I could handle the title saving myself ...
-1
votes
1answer
33 views

clicking on page title

In the website I'm looking for something so that I can disable clicking titles in category posts. Just want them to be a simple text not a link one How can I do that? Thanks
3
votes
1answer
627 views

Bulk edit wordpress images alt and title attributes

I uploaded around 600 pictures in different galleries in wordpress without setting the titles and alt attributes. I need to edit them, I was wondering a way to edit them by album, let's say the title ...
0
votes
1answer
391 views

Auto create post title in admin

I want to be able to generate titles automatically for a certain custom post type in WP admin. Been looking for a solution but I'm not sure if I'm headed in the right direction by adding this hook - ...
0
votes
1answer
287 views

Require title for pages

Is there a way to force users to write a page title before publishing? I have found example of requiring post titles, but not page titles.
1
vote
1answer
912 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
2answers
254 views

Split the_title

Is there a way to just split the_title into two different lines without a custom field? The titles in my blog are like small header above the maintitle. The Problem is, that at the moment I am ...
0
votes
1answer
428 views

How to remove title (home) from static page skeleton template

I am trying to remove the page title (home) from my index page. I made my home page my static page. I am using the skeleton theme https://github.com/simplethemes/skeleton_wp I'm new to wordpress so ...
0
votes
1answer
973 views

SEO meta description and title tag Yoast SEO

I am using Yoast SEO and a custom header. this obv means that any code that yoast uses to input all the seo stuff such as title tag and meta description wont be there. I solved the title tag by ...
0
votes
3answers
483 views

How to Remove a Title from All Category and Tags Page?

I am trying to remove the title from all my category and tags page. So far, I have been using this code http://pastebin.com/xxmyw7BP. It works but not perfectly. The title of my category and tag ...
1
vote
1answer
31 views

how to add text to posts from tags

How can I add custom generated text to posts using text from tags? Something like: [Post Title] + custom text + tags + custom text .... Or is there a plugin which does this ?
0
votes
1answer
76 views

Generate page title tag from the content of H1

Is there any way of generating the title tag of a page from the content of an H1 tag on my wordpress page? I've got some dynamically generated content pulled in via an external XML feed and and at the ...
-1
votes
1answer
164 views

Changing document title only on a custom page template

Hi can anyone help with the below, please? I want to be able to change the contents of my HTML <title> tag only, so need to write an if / else statement. I'm getting myself a bit muddled as my ...
0
votes
1answer
675 views

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

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 ...
1
vote
2answers
4k views

Hide price & title in store thumbnail dispay?

I'm setting up a WooCommerce site to sell shirts. I have the front page (and the "Store" page" set up to show a grid of thumbnails of the shirt designs. Each item has the price and the title of the ...
0
votes
2answers
53 views

SEO module to change tag title for different listing page

I need to have different tag titles for each category of my website. I've tried all in one SEO but it looks like i cannot change it individually. Thanks in advance
1
vote
1answer
946 views

How can I have a static title on my blog page?

My blog page is not my homepage. How can I add a title to the top of the page? i.e. "My Blog". Right now there is no title on the page. The title of the first post is at the top. (Sorry it's on my ...
0
votes
1answer
91 views

Images inside post title

Is there a way to insert images into a post title? It would also need to display the alt text in the <title> tag, permalinks, etc. The reason I need to do this is I have a client who want their ...
1
vote
2answers
67 views

How can I run this code once so that my generated post title doesn't keep changing on publish/update?

I have a custom post type called transaction, and on the post type's edit/publish screen I have removed the post title field. The post title is now being generated by the function below, which labels ...
3
votes
1answer
3k views

get attachment title based on attachment id

I'm getting an image through getMeta. It returns me the id of the attachment. Now I want to get the titel, alternative text, description and so on. For the alternative text this works very well: ...
0
votes
1answer
2k views

get_page_by_title() not returning anything

I'm trying to use get_page_by_title() to get the value of a parent custom post type through Gravity Forms. Basically a patient name is stored in a custom post and their patient id is the post title ...
1
vote
2answers
1k views

wp_title() empty on a static front page

I'm trying to use wp_title() to create a heading for my pages, but I'm using a static front page and, while all of the other pages render the title properly, the front page won't. This is what I'm ...
3
votes
2answers
182 views

Changing title to lowercase [closed]

Lets say i have 100 posts. And i would like to lowercase the title. but only 70 of it. I cant use text-transform or mb_strtolower. Is there anyway to download posts and lowercase the title with ...
0
votes
1answer
133 views

Getting a specific “title for a section” only on Startpage?

I have a website which shows alle posts from my wordpress on the startpage. thanks to Stephen Harris who helped me with this code I put in the functions.php: ...
0
votes
1answer
225 views

Getting all ID's matching a title in a custom post type

I am trying to pull out all post ID's that have the same post title. This is in a custom post type called 'course-manager'. Here is what I have so far: $pages = array(); $args1 = array( ...
1
vote
2answers
204 views

Short_title character problem

I am using this code to shorting the title: function short_title( $after = '', $length ) { $mytitle = get_the_title(); if( strlen( $mytitle ) > $length ) { $mytitle = substr( ...
0
votes
1answer
193 views

Show page title just from the first child-page in template

how can I do this: Pages: Home - sub-1 -- sub-sub-1 --- sub-sub-sub-1 On home-page should only show the page-title of the first child-page like: sub-1 I found this: <?php $child_pages = ...
2
votes
1answer
449 views

title_save_pre on post publish

I'm trying to build the title of a custom post using the values within post custom fields. The problem is that using title_save_pre only executes when I update the post, not when I create it. When I ...
0
votes
2answers
681 views

How to Custom Edit Post Title & Permalink Slug?

I'm trying to build some functionality where if you're logged into an admin account you'll see a small 'edit' link next to each post title. clicking will use jquery to create 2 form inputs - 1 with ...
0
votes
1answer
1k views

query_posts doesn't order by title

It seems like stupid bug, but how can i order by title? It anyways orders by date! I'm using: query_posts( array( 'post_type' => 'page', 'posts_per_page' => -1, 'orderby' ...
1
vote
1answer
1k views

How to get my post title to work with an apostrophe ('s)?

When saving a post with the title Jule's Gormet, it gets formatted as Jule&#039;s Gormet. If I save it again, it becomes Jule&amp;#039;s Gormet. Following this pattern, it keeps escaping ...
2
votes
1answer
616 views

Disallow Same Post Title

I am looking for some code where member can't use the same title as another post already having or used. e.g if there is a post with title "Amazing Australia Tour" than it should not allow to use the ...
0
votes
1answer
116 views

Change page title from page using php via php executed from page/post itself

I am running a plugin from a WP page to execute PHP and it works great. I'd like to edit the page title and description based on POST data. I am already using POST data in the PHP code to alter the ...
0
votes
2answers
180 views

How can I remove the first two words and shorten get_the_title()

Some of my posts' titles have leading words, followed by a colon. I am removing the leading words and the column of every post title in the loop with the following: <?php $title = ...
4
votes
2answers
1k 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
1answer
528 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 ...
3
votes
4answers
2k 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 ...
2
votes
2answers
389 views

Changing “Enter title here” based on post format

I'm wondering if is possible to change the text "Enter title here" based on the post format that you selected? For example: If you select the post format Quote than your text will be "Enter author's ...
0
votes
1answer
97 views

Take excerpt of the content of the post and send it as the title to create new post

Explaining my goal: I would create the title by taking the first words of the post content. Ex: In the Admin interface would be the title field blank and the first 10 words of content would be sent as ...
0
votes
1answer
136 views

Is there a way to separate wordpress titles from their posts?

Basically I am coding my own theme, and I would like to have my titles listed on the left hand side, so that on clicking the title, the corresponding body opens up on the right. How can I list these ...
1
vote
1answer
2k views

Setting title using wp_title filter

I want to do something very simple but I'm stuck finding where in WordPress I need to perform this. When someone on my WordPress site visits a blog post page I want the title in the blog post to ...
1
vote
2answers
164 views

Change Site Title and Description html tags if not home page

For the purpose of good HTML structure, accessibility and SEO I'd like to change the site's title and description from H1 and H2 to P when appearing on any page other than the homepage. A conditional ...
0
votes
1answer
190 views

Change Default Custom Fields Metabox Name

I found that the title of the meta box cannot change via the cctm plugin. It shows "Custom Fields" as default, which is pretty annoying to see. Image So I decided to change it in function.php, here ...
1
vote
2answers
50 views

How do I set the blog name?

I am new to WordPress and don't know how to set the "blog name". I need to change a current value that has been coded (or set) somewhere for the home page only. It is appearing in the title, and I ...
0
votes
2answers
403 views

Where do I change the ACTUAL title tag that is set in the header.php

I am new to WordPress, and have been asked to change a value in the title tag. The title tag is of the format: "site name | slogan" which is set dynamically in the header.php (seems standard code for ...
2
votes
1answer
1k views

Get title of post without using the_title();

Noob question. Is there another way of getting a posts title without using the_title(); I'm asking because I am using a function the take a string parameter, then after some code, returns this ...
0
votes
1answer
2k views

How to get post category title within the loop?

I'm stuck in a rather simple task: to get the category title for the current post, within the loop, to be used in the function (not to be automatically printed). Any ideas?