Method |
Description |
|
author ( ) : string |
Get the author of the current post. |
|
authorMeta ( string $field = '', integer $user_id ) : string |
Get author meta. |
|
category ( integer $id ) : array |
Get the categories of the current post. |
|
content ( string $more_text = null, boolean $strip_teaser = false ) : string |
Get the content of the current post. |
|
date ( string $d = '', integer | WP_Post $post = null ) : string |
Get the date of the current post. |
|
excerpt ( integer | WP_Post $post = null ) : string |
Get the excerpt of the current post. |
|
id ( ) : integer |
Get the id of the current post. |
|
link ( integer | WP_Post $post, boolean $leavename = false ) : string |
Get the permalink of the current post. |
|
nextPage ( string $label = null, integer $max_page ) : string |
Return the next link html anchor tag for post entries. |
|
paginate ( array $args = [] ) : string | array |
Return a pagination for any type of loops. |
|
postClass ( string | array $class = '', integer | WP_Post $post_id = null ) : string |
Add the classes for a given post. |
|
previousPage ( string $label = null ) : string | void |
Return the previous link html anchor tag for post entries. |
|
tags ( integer $id ) : array |
Get the tags of the current post. |
|
terms ( string $taxonomy, $post ) : array | false | WP_Error |
Get the terms (custom taxonomies) of the current post. |
|
thumbnail ( $size = 'post-thumbnail', $attr = '', $post = null ) : string |
Get the post thumbnail of the current post. |
|
thumbnailUrl ( string | array $size = null, boolean $icon = false ) : null | string |
Get thumbnail url of current post. |
|
title ( integer | WP_post $post ) : string |
Get the title of the current post. |
|