jonokane
Forum Replies Created
-
Thanks, esmi – I really appreciate your help! I’ll look in to the get_option. Cheers!
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?
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: https://truewinter.com/mailing-list
The main posts page where it’s displaying the post instead of the page: https://truewinter.com/newsHmm – no errors, but I’m not getting anything back with that. I wonder what I’m missing?
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
In reply to: Error establishing a database connection on OS X 10.5Followup: 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