Title: jonokane's Replies | WordPress.org

---

# jonokane

  [  ](https://wordpress.org/support/users/jonokane/)

 *   [Profile](https://wordpress.org/support/users/jonokane/)
 *   [Topics Started](https://wordpress.org/support/users/jonokane/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jonokane/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jonokane/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jonokane/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jonokane/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jonokane/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to properly echo post-slug/post-name and/or Page Permalink Title?](https://wordpress.org/support/topic/how-to-properly-echo-post-slugpost-name-andor-page-permalink-title/)
 *  Thread Starter [jonokane](https://wordpress.org/support/users/jonokane/)
 * (@jonokane)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/how-to-properly-echo-post-slugpost-name-andor-page-permalink-title/#post-1799572)
 * Thanks, esmi – I really appreciate your help! I’ll look in to the get_option.
   Cheers!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to properly echo post-slug/post-name and/or Page Permalink Title?](https://wordpress.org/support/topic/how-to-properly-echo-post-slugpost-name-andor-page-permalink-title/)
 *  Thread Starter [jonokane](https://wordpress.org/support/users/jonokane/)
 * (@jonokane)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/how-to-properly-echo-post-slugpost-name-andor-page-permalink-title/#post-1799290)
 * It is surprising to me how difficult/undocumented this is. Is this not a normal
   feature/pattern? I am wondering if there are other methods to give pages unique
   identifiers for id’s or classes?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to properly echo post-slug/post-name and/or Page Permalink Title?](https://wordpress.org/support/topic/how-to-properly-echo-post-slugpost-name-andor-page-permalink-title/)
 *  Thread Starter [jonokane](https://wordpress.org/support/users/jonokane/)
 * (@jonokane)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/how-to-properly-echo-post-slugpost-name-andor-page-permalink-title/#post-1799276)
 * It’s the site’s main posts page. When I do `<?php echo $post->post_name;?>` it
   works for all the other pages, other than the posts page.
 * On my site, just to test this functionality, I’m echoing the results to the top
   of the page. You can see the two in action here:
    A page where this works great:
   [http://truewinter.com/mailing-list](http://truewinter.com/mailing-list) The 
   main posts page where it’s displaying the post instead of the page: [http://truewinter.com/news](http://truewinter.com/news)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to properly echo post-slug/post-name and/or Page Permalink Title?](https://wordpress.org/support/topic/how-to-properly-echo-post-slugpost-name-andor-page-permalink-title/)
 *  Thread Starter [jonokane](https://wordpress.org/support/users/jonokane/)
 * (@jonokane)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/how-to-properly-echo-post-slugpost-name-andor-page-permalink-title/#post-1799255)
 * Hmm – no errors, but I’m not getting anything back with that. I wonder what I’m
   missing?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to properly echo post-slug/post-name and/or Page Permalink Title?](https://wordpress.org/support/topic/how-to-properly-echo-post-slugpost-name-andor-page-permalink-title/)
 *  Thread Starter [jonokane](https://wordpress.org/support/users/jonokane/)
 * (@jonokane)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/how-to-properly-echo-post-slugpost-name-andor-page-permalink-title/#post-1799248)
 * Aha! Thanks so much for your super-fast response, esmi. This solution almost 
   works, however, on the page where I have the actual blog, it (understandably)
   echos the most recent post, instead of the actual title of the page. Is there
   something similar for the page slug itself?
 * Thanks!
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Error establishing a database connection on OS X 10.5](https://wordpress.org/support/topic/error-establishing-a-database-connection-on-os-x-105/)
 *  Thread Starter [jonokane](https://wordpress.org/support/users/jonokane/)
 * (@jonokane)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-on-os-x-105/#post-709653)
 * Followup: After spending what seems like an absolutely ridiculous amount of time
   on this, I have figured out the embarrassingly simple issue.
 * localhost != Localhost
 * My Mac identifies itself as Localhost, **NOT localhost**! Learned something extremely
   obvious…. 🙂
 * So the config should look like this:
 *     ```
       define('DB_NAME', 'dbname');    // The name of the database
       define('DB_USER', 'root');     // Your MySQL username
       define('DB_PASSWORD', 'xxx'); // ...and password
       define('DB_HOST', 'Localhost');    // 99% chance you won't need to change this value
       ```
   

Viewing 6 replies - 1 through 6 (of 6 total)