WP Post Formats - Tag Reference
WP Post formats has the following tags built in as well as all the standard Filters from the twig template engine.
- permalink()
- This is equivalent to calling
the_permalink()
in a PHP template. - content( more_link_text, stripteaser )
- This is equivalent to calling
the_content( $more_link_text, $stripteaser );
in a PHP template. - excerpt()
- This is equivalent to calling
the_excerpt()
in a PHP template. - title( before, after )
- This is equivalent to calling
the_title( $before, $after )
in a PHP template. - tags( before, sep, after )
- This is equivalent to calling
the_tags()
in a PHP template. - author()
- This is equivalent to calling
the_author()
in a PHP template. - category( seperator, parents )
- This is equivalent to calling
the_category( $seperator, $parents )
in a PHP template. - time( 'F j, Y')
- This is equivalent to calling
the_time( \'F j, Y\' )
in a PHP template. The format defaults to the one that is set in the wp-admin settings. - post_thumbnail( size )
- This is equivalent to calling
the_post_thumbnail( $size )
in a PHP template. - term_list( taxonomy, before, sep, after )
- This is equivalent to calling
echo get_the_term_list( $post->ID , $taxonomy, $before, $sep, $after )
in a PHP template. - post_class()
- This is equivalent to calling
post_class()
in a PHP template. - shortcode( '[some-shortcode]')
- This is equivalent to calling
do_shortcode( \'[some-shortcode]\')
in a PHP template. - post_meta( 'some-postmeta')
- This is equivalent to calling
echo get_post_meta( \'some-postmeta\' )
in a PHP template.