Stupid question, I bet: I'm doing a website for an artist where I have a custom post type of "Painting". How do I get the permalink of the one added most recently?
Here is a simple function that will return the Permalink of the last painting post:
so once you paste that function in your theme's functions.php file you can just call it whenever you want:
|show 2 more comments|