wp_query() to get custom posts from the database. I want to list these out as links to the entries, so I'm thinking I could use the slugs. Sadly these don't seem to be included in the
Here's my code:
$oWP = new wp_query(array( 'post_type' => 'letters_of_ref' , 'orderby' => 'meta_value' , 'meta_key' => 'aaaConsultant_dateofletter' ));
So, given the post ID, how do I get the post's slug?
Alternatively, am I going down the right path to construct the link?
Update: just found the
the_permalink() functions, so I'm good for the link. Still want to find the slug though.