The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
713 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
2k 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's Gormet. If I save it again, it becomes Jule's Gormet. Following this pattern, it keeps escaping ...
2
votes
2answers
772 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
120 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
213 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
585 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
3k 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
406 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
103 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
146 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
3k 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
224 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
199 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
51 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
462 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
2k 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?
0
votes
1answer
224 views

Title how does page no work in Twenty Eleven

I would like to understand how does twenty eleven title page no works.. sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ); I dont understand the above part as in the __() function the ...
0
votes
1answer
532 views

how to display page title only for child category pages

I apologize if this is a dumb question, but I am just learning PHP and Wordpress. It's probably very simple. I have a site where the top-level nav is all parent categories, with the child categories ...
1
vote
2answers
1k views

Change page title from plugin

Is possible to change page title on the fly from plugin? I've try global $post, but seem like plugin runs after. Any Ideas? Edit: Im writting some pages on the fly, based on same page / post, so ...
0
votes
1answer
104 views

Catagorized hierarchy menu for PAGES!

Yes, I am a noob at all this so please excuse my ignorance! So, for the past couple of days, I've been searching for a drop down page menu widget, but I would like to have the pages separated into ...
0
votes
1answer
1k views

Setting page title and keywords from PHP code

does WP offer any functions which can be used to set the page title and/or keywords from the PHP/Controller level? I'm basically looking for something like the wp_enqueue_style() function, which ...
0
votes
2answers
2k views

How do I get just the title from wp_get_attachment_image

I can get the image to appear fine in this bit of gallery code. However the flex slider gets its caption from a <p> tag (class="flex-caption") and I just need to echo out the image title inside ...
1
vote
1answer
612 views

Empty title on front page/Home

My main problem is around the title. In my index.php, I have specified a title tag and inserted the following: <?php wp_title(); ?> | <?php bloginfo( 'name' ); ?> My problem is the it ...
4
votes
2answers
5k views

How to get permalink and title from post ID?

I have stored an array of post IDs and I would like to list the posts as links, meaning I need to get the title and permalink for the post ID - $id. The list should be echoed out by the following if ...
0
votes
1answer
624 views

Echo title attribute php

I have the following in functions.php: function twentyten_continue_reading_link() { global $id; return ' <span class="readmore"><a href="'. get_permalink($id) . '" title="' . ...
0
votes
1answer
72 views

Change Title Type

I'd like to change the title field of a post in admin panel. I'd like this field was "textarea" instead of being "input type='text'". Would it be possible through any hook in functions.php? Thanks ...
0
votes
3answers
169 views

How do I include the category next to the title of a post?

On the main page in WordPress all I want is the category to come before the title of the article posted. So for example if it's a Review, I'd like the article name to be Review: Super 8. Okay so if ...
0
votes
1answer
691 views

Change description of my Jetpack facebook shared links [closed]

When I try to share a link from my WordPress site on facebook using the Jetpack Sharing Settings the link shows up like this: (My Featured image picture here) Put a hat on yo’ baby! | Trendz with ...
1
vote
1answer
128 views

WordPress is replacing double minus signs in Post Title, how to disable it?

sometimes i have Post Titles that contains 2 minus signs side by side (--) but wordpress is always removing one of the minus sign. Looks like: My--Text into My-Text any idea how to disable it? ...
0
votes
1answer
280 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
221 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
901 views

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

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
91 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
250 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 ...
2
votes
2answers
1k 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
608 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
110 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
204 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'); ...
2
votes
3answers
7k 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
2k 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
231 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
2k 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
523 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
789 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
276 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 ...
2
votes
4answers
2k 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
1answer
3k 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 ...