struct
Posts
pub struct Posts {
/* private fields */
}Query parameters for posts and pages (embeds authors, featured images and terms by default).
Methods
new
pub fn new() -> PostsA query with WordPress's defaults, embedding each post's author, image and terms.
param
pub fn param(self, k: &str, v: &str) -> PostsSet query parameter k to v, replacing any value it had.
order_by
pub fn order_by(self, field: &str, ascending: bool) -> Postsdate, modified, title, relevance, …