This function will return the title of a post for a given post ID.

learn more… | top users | synonyms

0
votes
2answers
366 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 = ...
0
votes
1answer
341 views

Including a post title in a twitter link

Im trying to make a Twitter button on each article of my blog. This is the code I use on single.php <a href="http://twitter.com/home?status=<?php echo urlencode(get_the_title()); ?>"> ...
3
votes
3answers
3k views

How to split up the_title and insert a span tag

My titles, site wide, will follow this theme all within a h1 tag: Main title heading / Sub-title text I'm trying to wrap a span tag around all text after and including the '/' so my markup will look ...
0
votes
1answer
2k views

Random Custom Post Type Titles

So i found the code below from another question on here, it displays a list of titles from a custom post type, my question is, How do i get the list to randomize? <?php $queryObject = new ...
0
votes
1answer
2k views

get_the_title and get_permalink outside of the Loop

I'm trying to list the parent to a page in the sidebar. I can get the parent-page ID. I can get it to print with a print_r function, but no matter what I try I can't get get_permalink and ...
0
votes
2answers
1k views

Can't Get Parent and Child Categories of Custom Taxonomy to Display

I have a Custom Post Type set up with a Custom Taxonomy. For this Custom Taxonomy, I'm trying to figure out how to echo out the titles of the parent category and current child category within it. ...
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: ...