Login or register.

xss_archives_content

Published on 01 September 2010 by MillaN in

0

xss_archives_content($type = “auto”, $more_link_text = “Read the rest of this entry ยป”, $post = null, $length = 0, $end = ‘…’, $forced = false, $p = true, $no_link = false) $post: full post object. leave empty to use global. $type: what to display. set to ‘auto’ will use control panel settings. use ‘excerpt’ or ‘content’. [...]

Continue Reading

xss_span_sentence_words

Published on 01 September 2010 by MillaN in

0

xss_span_sentence_words($title, $class = “word”) $title: text to process. $class: css class to add to span elements. Split any text into words, and join it again. Words will be enveloped in span. Short 1 or 2 letter words will be merged to longer words. Span tags generated will use $class with addition of the index of [...]

Continue Reading

xss_excerpt

Published on 01 September 2010 by MillaN in

0

xss_excerpt($post = null, $length = 0, $end = ‘…’, $forced = false, $p = true, $no_link = false) $post: full post object. leave empty to use global. $length: excerpt length (for xScape generated excerpt). $end: excerpt ending string, read more. $forced: force use of xScape excerpt regardless of settings. $p: wrap excerpt in P tag [...]

Continue Reading

gdtt_is_archive_custom_post_type

Published on 28 August 2010 by MillaN in

0

gdtt_is_archive_custom_post_type($post_type = ”) $post_type: name of the custom post type. Checks if the current page is the archive for custom post type.

Continue Reading

gdtt_cpt_feed_link

Published on 28 August 2010 by MillaN in

0

gdtt_cpt_feed_link($post_type, $feed = ”) $post_type: name of the custom post type. $feed: replacement feed object. Defaults to RSS2 if not set to anything else. Returns custom post type archive feed link. Works with permalinks settings active or deactivated.

Continue Reading

gdtt_post_type_from_wpquery

Published on 28 August 2010 by MillaN in

0

gdtt_post_type_from_wpquery() Return post type object based on post_type parameter in wp_query. If there is no post_type in the query, function return null.

Continue Reading

gdtt_wp_tag_cloud

Published on 28 August 2010 by MillaN in

0

gdtt_wp_tag_cloud($args = array()) $args: list of arguments same as for the default function, with added post_types argument. Renders tag cloud for any taxonomy, and also allows filtering by post_types argument. If this argument is added, links in the cloud will be expanded with post_type argument. For full list of arguments check out original WordPress function. [...]

Continue Reading

gdtt_get_taxonomy_list

Published on 28 August 2010 by MillaN in

0

gdtt_get_taxonomy_list($taxonomy = ‘category’, $separator = ”, $post_id = 0, $include_post_type = true) $taxonomy: taxonomy to list. $separator: to separate elements in the list. If empty renders as UL/LI. $post_id: post to render list for. If set to 0, function will use global $post. $include_post_type: if set to true, term link will include post_type argument. Display [...]

Continue Reading

gdtt_get_terms

Published on 28 August 2010 by MillaN in

0

gdtt_get_terms($taxonomies, $args = ”) $taxonomies: one or more taxonomies to include. $args: settings for normal get_terms function, but with additional post_types parameter. Function returns list of terms for one or more taxonomies. With added post_types argument, terms will be filtered using post_types. Default WordPress function: get_terms

Continue Reading