diff --git a/functions/relatedcomics.php b/functions/relatedcomics.php index 09b7e13..3d3d985 100644 --- a/functions/relatedcomics.php +++ b/functions/relatedcomics.php @@ -6,7 +6,7 @@ * Usage: [related_comics] * */ -/* + function related_comics_shortcode( $atts = '' ) { extract(shortcode_atts(array( 'limit' => '5', @@ -66,7 +66,7 @@ function related_comics_shortcode( $atts = '' ) { } return; } -add_shortcode('related_comics', 'related_comics_shortcode'); +// add_shortcode('related_comics', 'related_comics_shortcode'); ?> -*/ + diff --git a/functions/relatedposts.php b/functions/relatedposts.php index 89c136a..c859cd2 100644 --- a/functions/relatedposts.php +++ b/functions/relatedposts.php @@ -6,15 +6,14 @@ * Usage: [related_posts] * */ -/* function related_posts_shortcode( $atts = '' ) { extract(shortcode_atts(array( 'limit' => '5', ), $atts)); - + global $wpdb, $post, $table_prefix, $category_tree; - + if ($post->ID) { // Get tags $tags = wp_get_post_tags($post->ID); @@ -33,9 +32,9 @@ function related_posts_shortcode( $atts = '' ) { GROUP BY tr.object_id ORDER BY count DESC, p.post_date_gmt DESC LIMIT $limit;"; - + $related = $wpdb->get_results($q); - + if ( $related ) { $retval = ' '; + '; return $retval; } return; } -add_shortcode('related_posts', 'related_posts_shortcode'); +// add_shortcode('related_posts', 'related_posts_shortcode'); -?> -*/ +?> \ No newline at end of file