This. is. [ link ][umm ... green]
Make Your Titles Awesome.
Titler (aka WP Custom Headlines) is a plugin that gives you complete control over the design and styling of the titles of your Posts/Pages. Furthermore, within Titler’s shortcode you can customize and personalize your titles, depending on different parameters that you control.
For example, the title of this page has an Image (brush), the styling on the word ‘Titler’, a link and random text (the color, hit refresh and see it change). You could do A LOT more with titler.
Titler’s Features :
- Completely redesign and restyle a Post/Page Title.
- Dynamically Customize your title depending on the day/month/year.
- Dynamically Customize your title depending on the time that has passed since the post/page was published.
- Personalize the title depending on the user/guest.
- Dynamically Modify your titles according to exact dates (add a message for Valentine’s, New Year,etc).
- Dynamically Modify your titles depending on the amount of comments in the post.
- Radnomize text in Title.
- Limit titler to Posts / Pages / Main Loop.
Since Titler lets you generate your titles with simple shortcode, you can practically put whatever you want in the title (images, links, etc).
If you’ve ever used WordPress to post anything, than you can easily start styling and designing you titles.
To do so, just type the title of your choice in the Edit Post box, and wrap it in titler shortcode tags. How you design/style the text that’s between the open/closed titler shortcode, is how it will show once the post is viewed (that text will also be removed from your post/page’s content.
So, the code would look something like this :
[titler]You new awesome title![/titler]
Needless to say, whatever you add between the titler tags, is going to show as well – whether its images, links and whatnot.
The Titler title you design will not show in the admin area, and not in the url of the post/page. This will still be taken from the regular Title text field.
With Titler you can include the currently logged in user’s name (or a certain string when its a guest). To do so, you simply use the attribute user, with the following parameters :
- user = “first”, to display the user’s first name.
- user = “last”, to display the user’s last name.
- user = “lastfirst”, to display the user’s last & first name.
- user = “firstlast”, to display the user’s first & last name.
- user = “display”, to display the user’s display name.
In the case the user did not provide one of the those parameters, or its a guest (non-logged in user) – you can include a fallback string to be included instead. to do so, add that string after your chosen parameter and separate the two with ‘||’, so the code would look like this : user = “first||fallback”.
To tell Titler where to place that text, you add the word @user where ever you want between the titler tags. Titler will look for that word in the title and replace it the parameter you chose.
For Example :
[titler user="first||Guest"]Hello @user! This is my new awesome title![/titler]
Lets say you want to modify the title (different image, include a link, highlight etc) if a day has passed since your published the post, and another time a month later, and another time 3 months later. With Titler you can achieve this, and more – you can also tell Titler to modify the titler depending on what day, month or year it is.
To make a part (or all) of your title depend on how long has passed since the time you published the post/page, you gotta use 2 attributes in the shortcode. One to tell titler the time periods, the other for the strings to display :
- elapsed_array, this attribute defines the times (in hours) to be used. you separate the times with ‘||’.
so, for example, if you want a certain text to appear in the title after you published the post, than the first number would be 0, lets say you want the text to change after 100 hours, than next number would be 100, and next change would be after 1000, in the change would not change until the end of times.
so, that parameter would look like this :
elapsed_array = "0||100||1000"
- elapsed_text, this attribute defines the text to appear in the title. if between 0-100 hours you want to place ‘aaa’ in the title, 100-1000 ‘bbb’ and 1000-infinity ‘ccc’, the attribute would look like this :
elapsed_text = "aaa||bbb||ccc"
To tell Titler where to place the text, add the word ‘@elapsed’ where ever you want between the titler tags.
For example :
[titler elapsed_array="0||100|1000" elapsed_text="new||older||too old!"]My @elapsed awesome title![/titler]
Day / Month / Year Dependency
You can also tell titler to modify the title depending on what day / month / year it is. to do so, use this attributes :
- days (day number, 1-monday, 7-sunday), months (month number, 1-12), years (year, 4-digit – 2013, 2014, 2078 etc). use those attributes to let titler now what days/months/years you want to trigger the title changes. separate with ‘||’.
- days_text , months_text , years_text , for the relevant text to appear in the right day/month/year. again, seperate with ‘||’.
To tell Titler where to put the text for days, months, years – add the word @day , @month , @year accordingly.
So, for example – the following code :
[titler days="1||7" days_text="damn...||woohoo!" months="5" months_text="May" years="2013||2020" years_text="soon||zzzzing"]@day @year this is my new awesome title! @month[/titler]
Will begin with ‘damn…’ on Mondays, and with ‘woohoo!’ on Sundays, will continue with ‘soon’ next year or ‘zzzing’ on 2020, and every May will end with ‘May’.
Exact Date Dependency
You can make part of your title depending on what date it is, so you can customize your title for New Year’s, Valentine’s, etc. To do so, you have to use the dates, to tell Titler which dates to activate the text switch. Date format is DDMM, ie for first of july, the date is ’0107′, as with previous attributes, separate multiple dates using ‘||’.
To let Titler know which text to replace, use dates_text. Separate with ‘||’. Use the word @date in your title to let Titler know where to place that text.
For, example :
[titler dates="3112||0101" dates_text="Almost..." dates_text="Happy New Year!"]My awesome new title! @date[/titler]
This will show ‘Almost…’ at the end of our title on Dec. 31, and ‘Happy New Year! on Jan 1.
In some cases you might want to modify your title depending on different popularity measures. Currently, Titler detects popularity only by using the number of comments posted. We’re working on more non-destructive ways to measure post popularity.
Modify by Range of Comments
You can let Titler modify your title if your post’s number of comments falls somewhere between limits that you set. Very similar to Time-Since-Published dependency – if your post has between 0-10 comments, add a certain text, if your post has 10-100 comments, change the text to something different etc.
Usage is the same as Time-Since-Published dependency, only the attributes are different : to let Titler know the range of comments, use comments, and seperate limits with ‘||’ – so, comments = “0||10||100″, will set the limits as : 0 to 10 comments, 10 to 100 comments and 100 comments and above.
Use comments_text to tell Titler what text to put in the title, and use the word @comment to let it know where to put the text in the title.
For Example :
[titler comments="0||20||50" comments_text="Struggling||Hot||On Fire!"]My awesome new title is @comment![/titler]
Will produce ‘Struggling’ when the post has 0 to 20 comments, ‘Hot’ when it has 21-50 comments and ‘On Fire!’ on 51 and above comments.
With Titler you can add random text to our titles, for example – the title of this page will display a random color name (try to refresh this page).
To achieve this, simply use the attribute random_text, and continue to type the text entries, while separating them with ‘||’. Then, add the word @random inside the title, where you want to display this text, and voila!
For example, the code for this page’s title is :
[titler random_text="blue||yellow||red||white||black||green"]This. is. Titler! [ link ][umm ... @random][/titler]
If you don’t want Titler’s modified titles to show on search result, archives, front page, etc (basically, will show only on single pages, the_single() / the_page()). You can let Titler know this by using the only_single attribute. by default, Titler is set to show its titles only in single pages.posts, if you want those nifty titles to show in archives, search, etc – type only_single = “no”.
So, a code would look something like this :
[titler only_single="no"]My new awesome title![/titler]
If you don’t want Titler’s modified titles to show in Sidebars (Post’s lists, for example) – and only to show as the Post’s/Page’s content title. You can let Titler know this by using the only_loop attribute. by default, Titler is set to show its titles only in the loop (so, nothing in widgets). if you want it to show in sidebars – type only_loop = “no”.
So, a code would look something like this :
[titler only_loop="no"]My new awesome title![/titler]