sligowaths
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How to get the current post slug?Moshu,
You´re right! If I keep the function in a core file, one future WP update may break my blog.
Thanks for the tip!
Forum: Themes and Templates
In reply to: How to get the current post slug?I created this function and placed in template-functions.php. Seems to work fine for me. Thanks for all.
function get_the_slug() {global $post;
if ( is_single() || is_page() ) {
return $post->post_name;
}
else {
return "";
}}
Forum: Everything else WordPress
In reply to: “The Best” Hosting, Hands DownDreamhost is a really good hosting. Util you get some emails telling you that you are using too much server resources and you´ll be moved to a evaluation server.
If you are planning to host only one site/blog with 5k~10~uniques a day, dreamhost IS an option. They have money back garantee, so I think you should try yourself.
Now I´m on LiquidWeb VPS and I can the both of them are reaaly good.
Just my 2 cents.
Forum: Themes and Templates
In reply to: How to get the current post slug?Hi, thanks for your reply!! I mean Page with capital P
What do you suggest? Create “the_slug” function and place together the others “the_*”?
Thanks again,
TiagoForum: Themes and Templates
In reply to: Get post author to display under each postSure! Take a look to this URL
http://codex.wordpress.org/Template_Tags#Author_tags