The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
406 views

How to prevent URL-modification when page title contains digits only?

When I create a page whose title contains only digits - wordpress adds '-2' to the url, like it does in cases, where there is a page with the same name already existing. However this is not the case ...
2
votes
1answer
253 views

How to add terms to a post depending on its title?

I want to add all posts with keyword "Dog Training" in the post title to a specific category. Reason: If you enter something into WordPress search it's not an exact match. Previous WordPress search ...
0
votes
2answers
978 views

Double bar “|” in title (By WP SEO Yoast?) [closed]

I am wondering why my pages (post doesn't have this problem) have a double bar "|" in them eg. About || Jiew Meng's Blog UPDATE Actually it appears in other pages too, like this. In this case, ...
-1
votes
1answer
93 views

Trying to get more space removed from my header

The last time , you help me to remove the header from all the pages besides the Home page (thanks again by the way). The reason for me to do so , is because I don' t want my music player for example ...
0
votes
2answers
283 views

Cannot use 'CSS' in post title

Issue? Whenever I use the term 'CSS' in a post title, the rest of the title (after the term 'CSS'), is inserted at the top of the single post page. What steps will reproduce the problem? 1. Create a ...
4
votes
2answers
2k views

order by second word in title?

I have full names as title posts and want to order it by the surname. How could i do this with wordpress? in PHP it would be along the lines of - SELECT * from posts ORDER BY ...
1
vote
2answers
1k views

Add the last viewed post title to a contactform with shortcode [closed]

I'm using the contactform 7 plugin and i want to add the title of the last viewed page (The page visited before the contact) to the dynamic field of the plugin with a shortcode. Is there a way to do ...
0
votes
3answers
120 views

Best way to handle lack of titles in microblogging

I'm experimenting with doing "microblogging" with WordPress and I'm doubtful about how to handle "titles" when one uses different post "formats" (the "formats" may or may not be related with the core ...
0
votes
1answer
296 views

strtolower <title>

Currently the WordPress Twenty something themes all have this as the title: <title><?php global $page, $paged; wp_title('~', true, 'right'); bloginfo('name'); ...
7
votes
3answers
17k views

How Do I Set the Page Title Dynamically?

Is it possible to change the page title with code? For example, let's say the page's name is "Book your Order", but I want to change it to "Book Order #123". I Google'd a bit and looked here and ...
2
votes
2answers
3k views

When calling wp_title(), do you have to create some kind of “title.php” file?

... or does wp_title() already handle the various contexts in your blog? This could clarify for me how I can achieve a reusable index.php file without having all the conditional statements inside it ...
0
votes
1answer
253 views

Can I change the “Home” text in the menu?

I’m pretty sure this can be done with a filter or some kind of find and replace, but I’m not sure how. I have a page called “Home” like so: When the link is displayed in my template it says ...
1
vote
2answers
3k views

Verify if tag is used on posts

I'm using site tags for a glossary. I would like to display a link to the tagged page if the tag exists, otherwise just display the tag title. Is there a check which would allow me to determine if the ...
0
votes
1answer
729 views

Filter media upload attachment meta

I'm trying to determine a way to access the meta data for an image when it is first uploaded with the media uploader. Looking at the media_handle_upload() function in /wp-admin/includes/media.php I ...
3
votes
4answers
973 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
307 views

Limitations when modifying wp_title with a filter

When constructing the HTML <title> attribute in a theme, I found there is a convenient hook for modifying wp_title. However, a quick review of themes indicates using this hook is not common ...
3
votes
4answers
3k views

How to change wordpress post title?

How to change just wordpress post title but not menu items. add_filter('the_title', 'wordpress_title'); function wordpress_title(){ return 'New title'; }
0
votes
2answers
5k views

Set max title length - similar to excerpt length for outside of single.php

I've been searching for a code snippet that lets me limit the title length similar to what you can to with the_excerpt and then just display "(...)" if the title is too long. I'd like to use that in ...
0
votes
1answer
519 views

Remove Title, Editor and Meta Box Support Based on Post Formats

Been looking around and can't find this. Is it possible to remove, let's say, the title area on post format: "quote"? Or the editor on post format: "image"? I noticed this page in the Codex: ...
2
votes
2answers
2k views

How to remove “Taxonomy name:” from wp_title

The wp_title-generated <title> in my custom taxonomy archive pages contains the singular taxonomy name with a colon. I can't figure out where this is coming from (or if it's default Wordpress ...
0
votes
2answers
456 views

Insert content into <title> head tag with function

Is there a hook available that lets you append or prepend text to the <title> tag in the head? I've seen lots of posts about customizing the <title> tag, but they all involve manually ...
0
votes
2answers
1k views

Loading pages via Ajax and displaying titles

A small and possibly simple consultation. I'm loading pages via Ajax like this: jQuery("div.menu a").addClass("ajax"); var hash = window.location.hash.substr(1); var href = ...
2
votes
1answer
667 views

Posts created in a Custom Post Type are lost if published without a title

I searched around and the URL below is all I could find on this problem. If I publish a custom post type's post without entering in a post title, it wipes the whole post's info and says "published". ...
3
votes
3answers
2k views

How to correctly get post type in a the_title filter

I want to prepend text to the post titles of a specific custom post type, but the filter below didn't work. Instead of changing only that CPT's post titles, it changed all titles on the given CPT's ...
0
votes
1answer
485 views

display only the title of the post into a certain category

My site works with phrases and texts In one category, the users send statements and debate about it. In another category, are sent statements and debate about them. I would like to show only the ...
3
votes
4answers
7k views

How to get page's ID if I know the title only?

Is there an exact opposite funciton to this one: get_the_title(ID) I know there's: get_the_id() But it doesn't seem to accept any arguments. So, basically, I'm looking for something like: ...
1
vote
1answer
2k views

Setting a title on a Custom Post Type that doesn't support titles

I have a CPT called "profile" that only supports the editor and thumbnail. Each user is limited to posting just 1 profile. I'm looking for a way to prefill the title and slug fields with the display ...
1
vote
0answers
146 views

LaTeX formulas in title of the post? [closed]

Is there anyway that one can put a LaTeX formula on the title of a post? I know that they eventually become an image, while being used inside posts, but I'm just curious.
-1
votes
1answer
942 views

Changing the title tag from a shortcode

I currently have a shortcode which dynamically swaps out locations on a page to make each page specific to a location. For example the url http://mywebsite.com/offers/scotland/ Would make the H1 ...
9
votes
5answers
31k 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
431 views

Why doesn't my simple the_title filter get applied?

I have added the code below to an active plugin, but it's having no effect on my posts. add_filter( ‘the_title’, ‘myfunction’); function myfunction($title) { return "Why won't this work?" . ...
3
votes
2answers
628 views

Copy a Taxonomy Term into the Post Title for a certain Custom Post Type

I am using Gravity Forms to allow users to create posts from the front end. However, the way this site I am building is going to work, one specific Post_Type is essentially just a "Data" post. There ...
2
votes
2answers
410 views

What code do you use to generate the text to go into the HTML title tag?

The question title says it all. Myself I just stick with the default code from one of the packaged templates that comes with WordPress out of the box: <title><?php /* * Print the ...
0
votes
2answers
2k views

Blog Posts not showing title

I have my Reading settings set to Static pages and blog is set to a page called What's New. When I go to this What's New page I can see the post content but the post title with link to post page is ...
2
votes
3answers
1k views

Custom Post Types: Custom columns with Title submenu?

When viewing non-custom Posts, you get the likes of this submenu: I'm not using a title - I'm using custom columns with two fields concatenated: Is there any quick and easy way of adding the ...
1
vote
1answer
927 views

Add title, post content, and category like add_post_meta and update_post_meta

How can I update/add a new title, post content, and category to a post with hard PHP code similar to add_post_meta(), update_post_meta()?
1
vote
1answer
82 views

Removing title tags from each page

hello to all I am newbie to wordpress. I want to remove the title tags from every page.Is there any way to remove that part?Thanks in advance..
0
votes
1answer
303 views

How do I choose not to display the title header on a specific page?

I would like to have one specific page on my WordPress blog omit the header . Is there a way to wrap that title code from page.php in my WordPress theme in an if clause that specifies the page I do ...
0
votes
2answers
3k views

How Can i Get 5 Recent Post Title With Corresponding Link?

I Want to Add My Latest 5 Post Title with Corresponding Link in My Header Position.What was the Actual Php code?Am Newbie ....
2
votes
2answers
2k views

Custom Post Type with Custom Title

I have a custom post type without title support and I'm trying to generate one from post's taxonomies and custom fields. To do so, I'm using this code: function custom_post_type_title_filter( $data , ...
-1
votes
2answers
847 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?
0
votes
3answers
2k views

What's the proper way to use the get_image_tag filter?

I'm attempting to remove the title attribute for post thumbnails (on certain posts), and I assume the get_image_tag filter is the way to do this. However, what I've got so far isn't working. What do I ...
1
vote
1answer
413 views

How to get “Widget Logic” plugin's input value in a custom widget code (to display on the Widget admin page)

I've got the "Widget Logic" plugin installed. I have created my own widget called "Buzz". I have a sidebar with multiple instances of my custom widget "Buzz". Now, on the Widgets admin page when a ...
0
votes
2answers
925 views

My post titles is getting mashed up with my blog title

I installed the all in one seo pack plugin and after enabling it my post titles get "stuck" with my blog title without a space in the title. As you can see the post title is: ******.blogg.no And my ...
0
votes
1answer
980 views

Site Title appearing twice on live site

My site template's header.php file has the following: <title><?php wp_title ( '|', true,'right' ); ?></title> Why does this produce the site title twice on each page?
0
votes
1answer
144 views

Truncate Widget Title

I'm using a function: function widget_new_title($title) { echo word_limiter($title,20); } add_filter('widget_title','widget_new_title'); to limit the characters for widget title but my problem ...
0
votes
1answer
77 views

Is there a way to specify an extra class for a post or page with no title?

If I do a post or a page with no title, I'm left with an empty h1 tag at the top of the post/page. I'd like to either get rid of the h1 in these cases, or else be able to add an extra CSS class to ...
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
1answer
243 views

Customizing Titles on the Fly with Code

I hope this question is easy. I want to customize my theme so that the post titles are created on the fly with code. For example, I might have a post where a price changes on the page 4 times a week, ...
5
votes
4answers
20k views

How to get current-menu-item title as variable?

Is possible to get current-menu-item as a php variable? I'm listing the category museums via the menu item 'museums we support' so i'd like the get 'museums we support' bit and display it somewhere? ...