You appear to be a bot. Output may be restricted
Description
Get the list of categories for this "post" as a string of slugs separated by commas
Usage
$string = bw_get_categories();
Parameters
Returns
string comma separated list of categories for the global postSource
File name: oik/includes/bw_posts.phpLines:
1 to 18 of 18
function bw_get_categories() { global $post; bw_trace2( $post, "global post", false, BW_TRACE_DEBUG ); // bw_backtrace(); if ( $post ) { $categories = get_the_category( $post->ID ); $cats = ''; foreach ( $categories as $category ) { $cats .= $category->slug; $cats .= ' '; } $cats = trim( $cats ); $cats = str_replace( ' ',',', $cats ); } else { $cats = null; } return bw_trace2( $cats, null, false, BW_TRACE_DEBUG ); }View on GitHub View on Trac