Shortcodes

Usage

Remember that parameters are added to your shortcode tag like this: [ shortcode-name parameter="value" ], where the shortcode-name corresponds to the shortcode’s tag name, of course, the parameter corresponds to the parameter’s name, and its value is enclosed in double-quotes. Example: [ fanlistings-list limit="5" ].

Fanlistings List

Default output of [ fanlistings-list ] shortcode:

50x50-books
?
ebooks505001
?
50x50_FFXI
?
impressionism
?
50x50_webdesign
?
50x50_writing
?


Parameters

  • orderby: options are ‘rand’, ‘title’, ‘date’, ‘id’; defaults to ‘title’
  • order: options are ‘ASC’ (ascending) and ‘DESC’ (descending); defaults to ‘ASC’
  • limit: number of fanlistings to show; defaults to 20
  • cat: a comma-separated list of the IDs of the fanlisting categories whose fanlistings you want to show; defaults to nothing, which means that fanlistings of all the categories are fetched

Fanlisting Categories

Default output of [ fanlisting-categories ] shortcode:

Parameters

With the exception of the ones NOT listed in the following list, the parameters for this shortcode are the same as the WordPress API function wp_list_categories(), and accept the same range of values.

  • orderby
  • order
  • show_last_updated
  • show_count
  • hide_empty
  • use_desc_for_title
  • child_of
  • feed
  • feed_type
  • feed_image
  • exclude
  • exclude_tree
  • include
  • hierarchical
  • title_li
  • number
  • depth
  • current_category
  • pad_counts
  • style

One thought on “Shortcodes

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>