diff --git a/functions.php b/functions.php index 54c9c21..5736a1c 100644 --- a/functions.php +++ b/functions.php @@ -1,5 +1,7 @@
  • ". get_the_category_list(' »
  • ', multiple)."
  • \r\n"; + $post_category = "\r\n"; } else { $post_category = "
    ". __('Posted In: ','comicpress') .get_the_category_list(',')."
    \r\n"; } @@ -101,7 +101,7 @@ function comicpress_display_blog_navigation() { } function comicpress_display_comic_navigation() { - global $post, $wp_query; + global $post, $wp_query, $comicpress_options; if (!$comicpress_options['disable_default_comic_nav']) { $first_comic = get_first_comic_permalink(); $last_comic = get_last_comic_permalink(); diff --git a/functions/membersonly.php b/functions/membersonly.php index 4505ea5..183998d 100644 --- a/functions/membersonly.php +++ b/functions/membersonly.php @@ -21,7 +21,7 @@ add_action('edit_user_profile', 'comicpress_profile_members_only'); add_action('profile_update', 'comicpress_profile_members_only_save'); -add_filter('pre_get_posts','comicpress_members_filter'); +// add_filter('pre_get_posts','comicpress_members_filter'); function comicpress_members_filter($query) { global $comicpress_options, $current_user; diff --git a/functions/moods.php b/functions/moods.php index c2217a2..40d9f42 100644 --- a/functions/moods.php +++ b/functions/moods.php @@ -21,7 +21,7 @@ function comicpress_show_mood_in_post() { if (!empty($moods_directory) && $moods_directory != 'none') { $mood_file = get_post_meta( get_the_ID(), "mood", true ); if (!empty($mood_file) && $mood_file != '') { - $mood = explode(".", $mood); + $mood = explode(".", $mood_file); $mood = reset($mood); if ( !empty($mood_file) && file_exists(get_stylesheet_directory() . '/images/moods/'.$moods_directory.'/'.$mood_file) ) { ?>
    <?php echo $mood; ?>
    diff --git a/functions/searchcustomfields.php b/functions/searchcustomfields.php index b71f53f..8fbed89 100644 --- a/functions/searchcustomfields.php +++ b/functions/searchcustomfields.php @@ -16,8 +16,8 @@ Author URI: http://szub.net */ function szub_search_custom_join($join) { - global $wpdb; - if( is_search() && szub_is_search_key() ) { + global $wpdb, $wp_query; + if( /* is_search() && */ szub_is_search_key() ) { $join = " LEFT JOIN $wpdb->postmeta ON $wpdb->posts.ID = $wpdb->postmeta.post_id "; } return $join; diff --git a/functions/shortcodes.php b/functions/shortcodes.php index 1fb03c5..a4e5ab8 100644 --- a/functions/shortcodes.php +++ b/functions/shortcodes.php @@ -4,7 +4,7 @@ add_shortcode( 'version', 'comicpress_ver_shortcode' ); function comicpress_ver_shortcode( $atts, $content = null ) { global $comicpress_options; - return '
    '.$comicpress_version['comicpress_version'].'
    '; + return '
    '.$comicpress_options['comicpress_version'].'
    '; } ?> \ No newline at end of file