BuddyDev

Search

Community Builder provides great flexibility in setting up post meta using the post meta shortcodes. thugh these shortcodes can use used in any context(in the post loop), In community Builder theme we use it to set the display for archive posts header/footer and single posts header/footer. An example can be found at the bottom of this page.

Available shortcodes:-

[author-name]

Usage:-

[author-name]

Display the name of the author of current post.

[author-name class=’pro-author’]

Adds class ‘pro-author’ to the generated html markup.

 

Options

class

(string) (optional) The css class to be applied to the generated markup for displaying author name. The default is  ‘post-ahutor-name’

 

Usage:-

[author-posts-link]

Display the author name linked to the author archive page.

[author-posts-link class=’pro-author-link’]

Adds class ‘pro-author-link’ to the generated html markup.

Options

class

(string) (optional) The css class to be applied to the generated markup for displaying linked post author name. The default is  ‘post-author-link’

 

[author-avatar]

Usage:-

[author-avatar]

Display the avatar of the author of current post linked to author archive page.

[author-avatar class=’pro-author-avatar’]

Adds class ‘pro-author-avatar’ to the generated html markup.

Options

class

(string) (optional) The css class to be applied to the generated markup for displaying author name. The default is  ‘post-ahutor-name’

size

(int) the size of avatar. default 32.

link

(int) (optional) Where to link avatar to the author archive page or not.

[author-total-posts]

Usage:-

[author-total-posts]

Display the number of posts written by the current post author.

[author-total-posts class=’pro-author-count’]

Adds class ‘pro-author-count’ to the generated html markup.

Options

class

(string) (optional) The css class to be applied to the generated markup for displaying count. The default is  ‘post-author-total-posts-count’

[post-date]

Usage:-

[post-date]

Display the date when the post was published.

[post-date format=’Fjy’]

Display the post published date using the given format.

Options

class

(string) (optional) The css class to be applied to the generated markup for displaying date. The default is  ‘post-date’

format

(string) (optional) PHP date format string. By default the format specified in WordPress settings.

[post-modified-date]

Usage:-

[post-modified-date]

Display the date when the post last updated.

[post-modified-date format=’Fjy’]

Display the post latest modification date using the given format.

Options

class

(string) (optional) The css class to be applied to the generated markup for displaying modified date. The default is  ‘post-modified-date’

format

(string) (optional) PHP date format string. By default the format specified in WordPress settings.

 

[post-time]

Usage:-

[post-time]

Display the time when the post was published.

[post-time format=’Fjy’]

Display the post published time using the given format.

Options

class

(string) (optional) The css class to be applied to the generated markup for displaying time. The default is  ‘post-time’

format

(string) (optional) PHP date format string.

[post-modified-time]

Usage:-

[post-modified-time]

Display the date when the post last updated.

[post-modified-time format=’Fjy’]

Display the post latest modification date using the given format.

Options

class

(string) (optional) The css class to be applied to the generated markup for displaying modified time. The default is  ‘post-modified-time’

format

(string) (optional) PHP date format string.

[post-title]

Usage:-

[post-title]

Display the current post title.

[post-title  before_title='<span class=”post-title”>’ after_title=”</span>”]

Display the post title wrapped inside the specified before_title, after_title markup.

Options

before_title

(string) (optional) The html markup to be applied before the title. The default is  ‘<h1 class=”post-title”>’

after_title

(string) (optional) The end markup. default is ‘</h1>’

[post-categories]

Usage:-

[post-categories]

Display the name of all the categories associated with the current post.

[post-categories  before_title='<span class=”post-title”>’ after_title=”</span>”]

Display the post title wrapped inside the specified before_title, after_title markup.

Options

class

(string) (optional) The css class to be applied to the generated markup. The default is ‘post-categories’

separator

(string) (optional) The separator used while listing category. The default is comma(,)

[post-tags]

Usage:-

[post-tags]

Display the name of all the tags associated with the current post.

[post-tags  separator=”|”]

Display the list of tags separated by the symbol “|”.

Options

class

(string) (optional) The css class to be applied to the generated markup. The default is ‘post-tags’

separator

(string) (optional) The separator used while listing tags. The default is comma(,)

[post-thumbnail]

Usage:-

[post-thumbnail]

Display the post thumbnail used in current post.

[post-thumbnail  size=”thumbnail”]

Use the named size thumbnail.

Options

size

(string) (optional) The name of one of the registered image size.

[post-comment-link]

Usage:-

[post-comment-link]

Display comments link to comments for the current post.