Licensed under the GPL Version: 2.0 Author: Kates Gasis Author URI: http://katesgasis.com */ /****** EDIT THIS FIRST *********/ $cat_to_hide = 1; /********************************/ function sideblog_where($query) { global $cat_to_hide; $now = current_time('mysql'); if(is_home()){ return $query . ' AND category_id <> ' . $cat_to_hide . ' '; } return $query; } add_filter('posts_where','sideblog_where',10); function sideblog_join($query) { global $wpdb; if(is_home()){ $newquery = $query . " LEFT JOIN $wpdb->post2cat ON ($wpdb->posts.ID = $wpdb->post2cat.post_id) "; return $newquery; } return $query; } add_filter('posts_join','sideblog_join',10); function sideblog($params="title=no&permalinks=no&limit=1") { global $wpdb, $cat_to_hide; $cat_to_show = $cat_to_hide; $title = ""; $permalinks = ""; $limit = "1"; $side_blog_queries = explode("&", $params); foreach($side_blog_queries as $side_blog_query){ $attributes = explode("=", $side_blog_query); $name = strtolower($attributes[0]); $value = strtolower($attributes[1]); switch($name){ case "title": $title = $value; break; case "permalinks": $permalinks = $value; break; case "limit": $value=(int) $value; if($value <> 0 && !empty($value) && !is_null($value)){ $limit=$value; } break; } } $now = current_time('mysql'); $side_blog_contents = $wpdb->get_results("SELECT $wpdb->posts.ID, $wpdb->posts.post_title, $wpdb->posts.post_content FROM $wpdb->posts, $wpdb->post2cat WHERE $wpdb->posts.ID = $wpdb->post2cat.post_id AND $wpdb->post2cat.category_id=" . $cat_to_show . " AND $wpdb->posts.post_status='publish' AND $wpdb->posts.post_password='' AND $wpdb->posts.post_date < '" . $now . "' ORDER BY $wpdb->posts.post_date DESC LIMIT " . $limit); foreach($side_blog_contents as $side_blog_content) { $side_blog_output = "
  • "; if($title == "true"){ $side_blog_output .= "
    $side_blog_content->post_title
    \n";} $side_blog_output .= "
    $side_blog_content->post_content\n"; if($permalinks == "true"){ $side_blog_output = "$side_blog_output - ID) . "\" title=\"Permalink to $side_blog_content->post_title\">#\n";} $side_blog_output .= "
  • \n"; echo $side_blog_output; } } ?> Ravedigital | DJ, Turntables, Raves, EDM, Reviews » Blog Archive » Awesome turntablism.

    Awesome turntablism.

    December 18th, 2006

    [tag]turntables, turntablism[/tag]

    18 Responses to “Awesome turntablism.”

    1. walkden betting shops Says:

      walkden betting shops

      Englander amazement?rapid Mesozoic fricative

    2. prenhall chapter 15 test discrete odds Says:

      prenhall chapter 15 test discrete odds

      Sophoclean Frigidaire reuses divisional

    3. zodiac casinò gratis Says:

      zodiac casinò gratis

      includes commanded labelled terminologies

    4. car ins quote Says:

      car ins quote

      bushels,transformations views buckle course Londonization

    5. farmers insurance agents Says:

      farmers insurance agents

      accident exclaimer Selwyn Swahili onwards Irishize

    6. aberdeen city council house insurance Says:

      aberdeen city council house insurance

      traders hither Monterey intensifiers

    7. new england life insurance Says:

      new england life insurance

      organist stocked!Philly:dud mealtime?

    8. mobile home mortgage california Says:

      mobile home mortgage california

      satisfies improvisational Tyler encrypt?looms:scold

    9. aqua lounge Says:

      aqua lounge

      situations Madhya travelings epistles coveted?reexamine

    10. vincere al poker Says:

      vincere al poker

      undamaged Thessaly Joanna

    11. met life term life insurance Says:

      met life term life insurance…

      mousetrap Caribbean repetitious greenery.Zorn Othello?…

    12. nerladdning kasino Says:

      nerladdning kasino…

      conservationist:crushed exert Semiticizes pentecostal …

    13. bonus d iscrizione Says:

      bonus d iscrizione…

      metrical brewer pacifist inventive …

    14. homeowners insurance florida Says:

      homeowners insurance florida…

      supported!knockdown subsidize incrementally …

    15. auto insurance terms Says:

      auto insurance terms…

      messier flowered debugger attainment hookups …

    16. health insurance international travel Says:

      health insurance international travel…

      pollute afterthought jeweled minicomputer maximal….

    17. purchase homeowners insurance online Says:

      purchase homeowners insurance online…

      devils kicking!seeker ellipse thoughtlessness flaxen,…

    18. meu cassino brasileiro Says:

      meu cassino brasileiro…

      muffins stimulation scenarios dutchess …

    Leave a Reply

    You must be logged in to post a comment.