Baltimore Ravens Rumors News Videos Yardbarkerco

Baltimore Ravens rumors, news and videos from the best sources on the web. Sign up for the Ravens newsletter!Baltimore Ravens Rumors, News & Videos | Yardbarker.com REALTIME RUMORS, GOSSIP, OPINIONS AND HUMOR FROM THE BEST SPORTS BLOGS GET OUR NEWSLETTER! NFL Arizona Cardinals Atlanta Falcons Baltimore Ravens Buffalo Bills Carolina Panthers Chicago Bears Cincinnati Bengals Cleveland Browns Dallas Cowboys Denver Broncos Detroit Lions Green Bay Packers Houston Texans Indianapolis Colts Jacksonville Jaguars Kansas City Chiefs Los Angeles Rams Miami Dolphins Minnesota Vikings New England Patriots New Orleans Saints New York Giants New York Jets Oakland Raiders Philadelphia Eagles Pittsburgh Steelers San Diego Chargers San Francisco 49ers Seattle Seahawks Tampa Bay Buccaneers Tennessee Titans Washington Redskins MLB Arizona Diamondbacks Atlanta Braves Baltimore Orioles Boston Red Sox Chicago Cubs Chicago White Sox Cincinnati Reds Cleveland Indians Colorado Rockies Detroit Tigers Houston Astros Kansas City Royals Los Angeles Angels Los Angeles Dodgers Miami Marlins Milwaukee Brewers Minnesota Twins New York Mets New York Yankees Oakland Athletics Philadelphia Phillies Pittsburgh Pirates San Diego Padres San Francisco Giants Seattle Mariners St. Louis Cardinals Tampa Bay Rays Texas Rangers Toronto Blue Jays Washington Nationals NBA Atlanta Hawks Boston Celtics Brooklyn Nets Charlotte Hornets Chicago Bulls Cleveland Cavaliers Dallas Mavericks Denver Nuggets Detroit Pistons Golden State Warriors Houston Rockets Indiana Pacers Los Angeles Clippers Los Angeles Lakers Memphis Grizzlies Miami Heat Milwaukee Bucks Minnesota Timberwolves New Orleans Pelicans New York Knicks Oklahoma City Thunder Orlando Magic Philadelphia 76ers Phoenix Suns Portland Trail Blazers Sacramento Kings San Antonio Spurs Toronto Raptors Utah Jazz Washington Wizards NHL Anaheim Ducks Arizona Coyotes Boston Bruins Buffalo Sabres Calgary Flames Carolina Hurricanes Chicago Blackhawks Colorado Avalanche Columbus Blue Jackets Dallas Stars Detroit Red Wings Edmonton Oilers Florida Panthers Los Angeles Kings Minnesota Wild Montreal Canadiens Nashville Predators New Jersey Devils New York Islanders New York Rangers Ottawa Senators Philadelphia Flyers Pittsburgh Penguins San Jose Sharks St. Louis Blues Tampa Bay Lightning Toronto Maple Leafs Vancouver Canucks Washington Capitals Winnipeg Jets NCAAF NCAAB SOCCER MMA FANTASY MORE… Action Sports All Sports Arena Football Beach Volleyball Boxing CFL Cricket Cycling Eating Entertainment Figure Skating Formula One Golf Gymnastics Horse Racing Hunting & Fishing IndyCar Lacrosse Motocross Motor Sports NASCAR Olympics Poker Rugby Skateboarding Skiing Snowboarding Softball Surfing Swimming Tennis Track and Field Triathlon WNBA WWE APPS QUIZZES Baltimore Ravens NFL ? RAVENS HOME ALL STORIES NEWSLETTER SCHEDULE MOBILE APPS RAVENS RUMORS & GOSSIP Two Ravens who could surprise with major contributions in 2016 Rookie Keenan Reynolds (drafted out of Navy) is a guy who will get every chance to make big plays on offense�� For the past two years I��ve been touting defensive end Brent Urban (6-7, 303, Virginia) as the future young difference maker in the pass rush for the Ravens. Unfortunately I must have jinxed the Canadian athlete because for two years in a row Urban has suffered preseason… Via Ravens Football Machine 4 hours ago ?|? Discuss Marc Trestman commits to Ravens Run-First
cheap nhl jerseys Mentality When Trestman commits, Trestman commits. Ravens offensive coordinator Marc Trestman has always been known as a pass-first offensive mind, but that may be in the past. Trestman was recently speaking on what he plans to do with the Ravens offense this season when he said,?��We��re always looking at ourselves as a team that should be able to run the ball first, That��s just the… Via cover32 2 days ago ?|? Discuss Ravens Writer Intro: Chuck Mills Hi, my name is Chuck Mills and I will be joining the Cover32/Ravens staff as a new writer. I have been rooting for the Baltimore Ravens since 2009, but I love watching football every week and I would like to think that I��ve learned a lot about football even if I haven��t been watching the team since Day One. AROUND COVER32 Fantasy Football: The Golden Tate era begins Andrew Luck… Via cover32 3 days ago ?|? Discuss Yardbarker Ravens TE Waller to miss 4 games for violating drug policy OWINGS MILLS, Md. (AP) Baltimore Ravens tight end Darren Waller has been given a four-game suspension for violating the NFL Policy and Program for Substances of Abuse. Waller will miss the team’s first four games of the 2016 season. He can return to the active roster after the Ravens face the Oakland Raiders on Oct. 2. Neither the Ravens nor the league released details of Waller… Via Associated Press 4 days ago ?|? Discuss NFL Notes: Von Miller, Tarvaris Jackson & Ravens Von Miller Jeff Legwold of ESPN writes that there is a lot more riding on whether the Broncos and franchise OLB Von Miller are able to get a long-term deal in place before the July deadline. If the two sides aren��t able to reach an agreement, it would leave Miller in position to either sit out the 2016 season or play out the year under the tag and hope to test free agency again… Via NFL Trade Rumors 4 days ago ?|? Discuss Is Ravens offensive coordinator on a short leash in 2016? Marc Trestman ��the Quarterback Whisperer�� was expected to build upon the offensive production of previous Ravens coordinator Gary Kubiak in 2015. It didn��t happen like that. In fact, while Kubiak was busy winning a Super Bowl for Denver, the Ravens offense regressed for a number of reasons under Trestman��s direction��although many of the reasons were beyond his control … Via Ravens Football Machine 5 days ago ?|? Discuss Five Things the Baltimore Ravens must do for 2016 Postseason Here is an imperative list of ?five things that the Baltimore Ravens must do in order to advance to the playoffs this coming season. This list is early, but these things are not likely to change. In other words, they are so basic to Ravens DNA, that they are sure to get serious momentum if these things are done. Protect This House. M&T Bank Stadium has statistically been… Via cover32 5 days ago ?|? Discuss Must-see games 2016: Baltimore Ravens Every team has must see games on their schedules for 2016. Even though football is still over two months away, it��s still never too early to look ahead to the big games. Who are the Baltimore Ravens playing in 2016!? This slide show breaks down the seven most intriguing match-ups for the Ravens based on these games being either rivalries, longtime conference grudge matches, potential… Via EndZoneScore 5 days ago ?|? Discuss Ravens fans are gonna love a healthy Jerraud Powers at cornerback�� Jerraud Powers, CB, age 28, 5-10, 190, 4.43-seconds in the ��40, drafted 3rd Round out of Auburn by Indianapolis in 2009, should add a nice mix of speed and coverage experience to the Ravens defensive backfield. As Ryan Mink reported for the Ravens website, the Ravens used a point system in offseason practices to keep track of which defenders got their hands on the ball and how… Via Ravens Football Machine 7 days ago ?|? Discuss WATCH: Ravens player surprises mother with new car Baltimore Ravens defensive lineman Carl Davis gave his mother a sweet Sunday surprise over the weekend in the form of a brand new BMW. Davis caught his mom completely off guard, showing up to his hometown unannounced and waiting for her to come out of church. And the best thing is Davis caught the whole thing on tape. He shared the heart-warming experience on his Instagram account… Via Sportsnaut 8 days ago ?|? Discuss Ravens WR Mike Wallace warns the NFL he will ‘show some people’ he’s not done Early in his career, Mike Wallace was considered to be one of the top up-and-coming wide receivers in the league. He had size, elite speed and could blow the top off of a defense with the greatest of ease. In 2010 and 2011, his second and third seasons with the Pittsburgh Steelers, Wallace had 18 total touchdowns and more than 2,400 yards.?Following the 2012 season, he inked a five… Via Fox Sports 8 days ago ?|? Discuss Joe Flacco responds to news he ��died�� Joe Flacco briefly ��died�� earlier this week, at least that was the story for a minute when someone apparently hacked into a Baltimore Ravens fan account
authentic jerseys and posted the fake news. Showing off his Joe Cool sense of humor, the quarterback responded on Twitter with an exceptional .gif. pic.twitter.com/WCMvALI3sg �� Joe Flacco (@TeamFlacco) June 23, 2016 Fans of the HBO show… Via Sportsnaut 11 days ago ?|? Discuss Young boy trolls Steve Smith with Patriots cheer Baltimore Ravens wide receiver Steve Smith hosted a football camp at Fort Meade for military kids earlier this week, in an effort to give back and enrich the lives of young kids. He probably didn��t expect one young boy to get right in his face and boldly declare ��Go Patriots!�� You’ve got to be bold to troll Steve Smith: https://t.co/MsrUKwykDEhttps://t.co/LaT6kKj5Pk ��… Via The Sports Daily 12
cheap mfl nba mlb nhl jerseys days ago ?|? Discuss Steve Smith gets trolled by Patriots fan at own football camp (vid) Steve Smith was going about his business connecting with youngsters at his football camp for military kids when one little wisenheimer elected to proclaim his arguably incompatible
cheap jerseys NFL allegiances by yelling ��Go Patriots�� right in the face of the Baltimore Ravens wide receiver. You��ve got to be bold to troll Steve Smith: https://t.co/MsrUKwykDEhttps://t.co/LaT6kKj5Pk ?… Via Sportress of Blogitude 12 days ago ?|? Discuss Joe Flacco death hoax sparked by Ravens Twitter fan page Contrary to what some bogus reports from Wednesday night would like you to believe, Baltimore Ravens quarterback Joe Flacco is alive and well. The Twitter page @RavensNationLIVE was supposedly hacked by someone who tweeted that Flacco was killed in a car accident. The tweet looked like this: Last night there was a report that Joe Flacco died; It was a hoax – https://t.co/PmlVHzIe8H… Via Larry Brown Sports 12 days ago ?|? Discuss Report Of NFL QB Joe Flacco��s Death Is A Hoax Don��t worry, NFL fans. Baltimore Ravens star quarterback Joe Flacco is alive and well, despite what one fan account tweeted late Wednesday night. A Twitter account dedicated to Baltimore franchise, named Ravens Nation Live, tweeted out that Flacco had passed away following a car crash. The tweet was live for an hour, and fans, obviously, were worried �C despite nothing official… Via College Spun 12 days ago ?|? Discuss Joe Flacco not mentally prepared to get hit on surgically repaired knee Baltimore Ravens quarterback Joe Flacco is still working his way back from a serious knee injury, which cost him the final six games of last season and?his streak of 137 consecutive starts. And while he expects to be ready on the first day of training camp next month, Flacco admits he��s?not sure how he��ll react to having pressure in his face again. ��It��s funny, when I��m… Via The Sports Daily 14 days ago ?|? Discuss Former NFL players voice support for medical marijuana Former Chicago Bears quarterback Jim McMahon is suffering through early onset dementia. It��s a disease usually reserved for the elderly – one that impacts your memory, thought process and cognitive abilities. McMahon, who played 15 seasons in the NFL, is just 56 years old. The former Super Bowl winning quarterback joined multiple ex-NFL players at the?Cannabis World Congress… Via Sportsnaut 16 days ago ?|? Discuss Why would the Ravens go out of their way to mention Eugene Monroe��s advocacy of marijuana? The Baltimore Ravens had several understandable reasons for cutting veteran offensive tackle Eugene Monroe. After all, Monroe is 29, which in football terms is far from young. And he��s injury-prone, having missed 15 games the last two seasons. Plus, the Ravens used the No. 6 overall pick in the draft on Notre Dame offensive tackle Ronnie Stanley. Oh, and Monroe was slated to cost… Via This Given Sunday 19 days ago ?|? Discuss Ravens website suggests team cut Eugene Monroe because of his marijuana advocacy The already lengthy book on public relations disasters involving the Baltimore Ravens?got another chapter Wednesday?afternoon, thanks to a story?on the team��s official website. The team elected to release veteran left tackle Eugene Monroe on Wednesday, and the team website, which fashions its?coverage similar to an independent agency, wrote up a story on the roster move. The… Via The Comeback 20 days ago ?|? Discuss John Harbaugh uses $1 bet with player to troll NFL over fine John Harbaugh demonstrated he has a sense of humor over a hefty fine the NFL recently levied upon him by cracking a joke over a $1 bet he supposedly made with Baltimore Ravens linebacker Za��Darius Smith. Harbaugh cracked wise during a session with reporters this week about the so-called bet, which involved determining whether Smith had lined up in the neutral zone during a recent?… Via Sportress of Blogitude 25 days ago ?|? Discuss Joe Flacco, Ravens teammates hold ��Bachelorette�� viewing party Joe Flacco and a handful of his Baltimore Ravens teammates got together on Monday night for some must-watch television viewing. Well, at least as far as they see things. Flacco, wide receiver Daniel Brown, kicker Justin Tucker and tight ends Dennis Pitta and Nick Boyle apparently are huge fans of the ABC reality series, ��The Bachelorette.�� Monday night’s @BacheloretteABC… Via Sportress of Blogitude 28 days ago ?|? Discuss Ray Rice still hoping to play in NFL in 2016? Ray Rice has not appeared in an NFL game in over two years, but the former Baltimore Ravens running back refuses to give up on his playing career. Rice spoke to incoming Ravens rookies last
cheap nfl jerseys week about making good life choices. He also made an appearance at Western Michigan recently as a guest speaker, leading some to believe he has accepted his NFL career is over and moved onto… Via Larry Brown Sports May 29, 2016 ?|? Discuss John Harbaugh says Trent Richardson must improve conditioning Ravens coach John Harbaugh says that ongoing issues with conditioning is the reason why running back Trent Richardson missed the first week of organized team activities with a hamstring injury. Richardson has been a bust since the Browns drafted him third overall in 2012, averaging just 3.3 yards per carry. He��s trying to catch on with his third team after disappointing stints… Via The Sports Daily May 27, 2016 ?|? Discuss Warren Sapp does not like Timmy Jernigan��s tribute idea For the first two seasons of his NFL career, Timmy Jernigan has worn uniform No. 97. When he takes the field this fall, the Baltimore Ravens defensive lineman will do so wearing jersey No. 99 to honor a player he admired growing up: Warren Sapp. Unfortunately, it appears Sapp doesn’t like the idea. Like many guys his age who play on the defensive line, Jernigan was a fan of Sapp… Via Larry Brown Sports May 26, 2016 ?|? Discuss MORE STORIES >> Ravens News Delivered to your inbox You’ll also receive Yardbarker’s daily Top 10, featuring the best sports stories from around the web. Customize
cheap jerseys your newsletter to get articles on your favorite sports and teams. And the best part? It’s free! By clicking "Sign Me Up", you have read and agreed to the Fox Sports Digital Privacy Policy and Terms of Use. You can opt out at any time. For more information, please see our Privacy Policy. the YARDBARKER app Get it now! BEST OF YARDBARKER Winners of the first weekend of NHL free agency Tweet Deflated and Confused with Brady, Simmons, Affleck and Goodell Tweet Goaltender moves highlight the opening of NHL free agency Tweet Pacific Division beefs up in first hours of NHL free agency Tweet So just how good is Andrew Luck? Tweet Apocalypse Dray: Splash Bros. scour the Earth for Draymond Tweet Unanswered questions ahead of NHL free agency Tweet QUIZ: Name the players on the 2016 Team USA basketball squad Tweet QUIZ: Name every Big 4 sports team to never win the championship Tweet Why is Harrison Barnes on the Olympic team? Tweet MORE BEST OF YARDBARKER >> THE RAVENS HOT 10 1 Arthur Brown Camp preview: Best-case, worst-case for ILB Arthur Brown 2 Chris Canty 3 Eugene Monroe Report: Giants ��still have interest�� in Eugene Monroe 4 John Harbaugh Harbaugh on what’s next pre-training camp for Ravens 5 Joe Flacco Joe Flacco not mentally prepared to get hit on surgically repaired knee 6 Ben Watson 7 Steve Smith Steve Smith gets trolled by
cheap jerseys wholesale Patriots fan at own football camp (vid) 8 Terrell Suggs 9 Elvis Dumervil 10 Carl Davis WATCH: Ravens�� Carl Davis surprised mother with BMW About the HOT 10 >> Follow us on Twitter Follow @Yardbarker 49ers Rumors Bears Rumors Bengals Rumors Bills Rumors Broncos Rumors Browns Rumors Buccaneers Rumors Cardinals Rumors Chargers Rumors Chiefs Rumors Colts Rumors Cowboys Rumors Dolphins Rumors Eagles Rumors Falcons Rumors Giants Rumors Jaguars Rumors Jets Rumors Lions Rumors Packers Rumors Panthers Rumors Patriots Rumors Raiders Rumors Rams Rumors Ravens Rumors Redskins Rumors Saints Rumors Seahawks Rumors Steelers Rumors Texans Rumors Titans Rumors Vikings Rumors Best of Yardbarker NFL News MLB News NBA News NHL News Winners of the first weekend of NHL free agency Deflated and Confused with Brady, Simmons, Affleck and Goodell Goaltender moves highlight the opening of NHL free agency Pacific Division beefs up in first hours of NHL free agency So just how good is Andrew Luck? Le��Veon Bell says he would ��never�� leave Steelers Report: Denard Robinson falls asleep at the wheel, drives car into pond Report: Tarvaris Jackson pleads not guilty for aggravated assault Julian Edelman: I pretended to be Tom Brady during recess Von Miller and Broncos have had recent ��communication�� Pirates�� Jung Ho Kang being investigated for sexual assault St. Louis Cardinals’ Brayan Pena to join Army Reserve Clay Buchholz moved back to Red Sox’s bullpen Price has beef with All-Star voting, wishes game didn’t count Matt Harvey after latest rough start: ��Back to the drawing board�� Brandon Ingram likes the pressure of taking Kobe Bryant��s locker Report: David West signs with Warriors for veteran mimimum Report: Issues with Westbrook contributed to Durant��s decision Report: Warriors hope to lure Ray Allen out of retirement Report: Dwyane Wade, Heat are ��not on great terms�� Paul Bissonnette works social media to try to find a job Panthers sign James Reimer David Backes signs with the Boston Bruins Bruins sign Torey Krug to four-year, $21 million extension Taylor Hall feels ‘slighted’ by ‘disappointing’ trade Today’s Best Stuff Most Popular Stories Athlete Blogs Mobile Apps The Morning Bark For Publishers Yardbarker Widget Company Info About Yardbarker Jobs at Yardbarker YB T-Shirt Store Help Frequent Questions Using Yardbarker Community Guidelines Privacy Policy Terms of Use Contact Us Switch to Mobile View Follow Yardbarker on Facebook on Twitter on YouTube ? 2016 Yardbarker, Inc. All rights reserved. Use of this website (including any and all parts and components) constitutes your acceptance of these Terms of Use and Privacy Policy. (What’s New?)

Dipping a toe into Home Automation

I recently had my kitchen counters redone with granite, which led to some related projects. If you redo the countertops you pretty much have to redo the backsplash, so we found a nice glass and natural stone mosaic tile. We also did under-cabinet lighting with LED light bars. The lighting project offered an opportunity for home automation.

The implementation of the lights were as follows:

  • Two new power outlets, one above each bank of cabinets.
    • The kitchen is separated into two halves, so wiring them together wasn’t an option
  • One light switch to control both outlets.

Rather than wiring the new switch to the new outlets, which i wasn’t really qualified to do, I used z-wave outlets and switch. The point was to be able to wirelessly control the outlets with the switch. Seems pretty straightforward initially.

Was Z-Wave the right protocol?

In the long run, Z-Wave is the right choice because I have plans beyond this project. However, if simple wireless control was the only goal, I could have done it simpler and cheaper using a protocol that doesn’t depend on a hub like Insteon. Though at the time, I assume Z-Wave didn’t require a hub. But keep that in mind – Z-Wave does require a hub.

Strike One – PC based hub

Trying to keep to a budget, I avoided getting a dedicated HA hub. I was also still under the false impression that once the Z-Wave devices were associated, they wouldn’t need the hub. So I got an Aeon Labs USB Z-Wave hub and installed the trial version of InControl HA Server. This worked, with caveats: a) the PC had to be on for anything to work, and b) it was really slow, like 20-seconds between hitting the switch and the outlets activating. There are several variables that might cause this – from wifi latency to software issues. get backlinks free . After some consideration I decided that a dedicated hub was required because using a dedicated PC or leaving my personal computer on all the time were not really options.

Strike Two – Going the dedicated hub route…coming in part 2.

WordPress 3.3 “Sonny” is nice

WordPress 3.3WordPress 3.3 was released a few days ago. Go here for even more detail. The most obvious and useful changes are to the Admin UI. The admin toolbar has been refined and expanded to be more useful, especially when using a site setup with Multisite (formerly WordPress MU).

The admin navigation got a minor overhaul, it now shows pop-out menus when you hover and only expands when you go into the section.

The Media Uploader has been updated. You can now drag files into a specified area, it supports multiple files at once, which is nice if you’re setting up a post with many photos.

jQuery has been updated to 1.7.1, and now includes the entire jQuery UI library, which I can personally attest to being extremely useful.

Progress marches on! Download today, let the team (and reply here) if you find any issues.

Edit: I was using a plugin called “Flickr Photo Post“, which seems to break the new media uploader. I have deactivated until I feel the need to update or find a new Flickr plugin. The plugin caused the new drag-and-drop feature to not appear, and clicking on the old “Choose File” did not work, rendering the uploader impossible to use.

A sad day in aviation history as Liberty Belle burns

Today is a sad day indeed. I could not believe my eyes reading about a B17 that crashed near Chicago today when I learned that it was Liberty Belle. After an engine fire, it was set down in a corn field and was engulfed in flames. The silver lining is that the 7 people on board got out safely.

Update: better pictures here: http://www.dailyherald.com/article/20110613/news/706139928/photos/EP1/

Full story

Liberty Belle crash

While there are a limited number of B17s flying, this one in particular will be missed as it was one of the most well-known and well traveled. It has been touring since 2004 when it was last restored and has a remarkable post-war service history. I’ve toured and taken pictures of her. In 2007 I saw it flying around Boise and followed it to the airport where I took hundreds of photos. I also have a poster of it on my wall which I purchased to help support the Liberty FoundationYou can see my gallery of Liberty Belle here.

A pic I took in 2007 when Liberty Belle visited Boise

A pic I took in 2007 when Liberty Belle visited Boise

 

The Liberty Foundation has another B17 in restoration. After seeing the images of the crash, I’m doubtful if Liberty Belle will ever fly again, though perhaps she can be parted out to benefit restoration projects. I hope that the foundation is able to make their other Fortress flyable so the number of working airframes doesn’t permanently drop.

Nose profile of Liberty Belle

Nose profile of Liberty Belle

The Flying Fortress was famous for being tough and getting its crew home safely even after being shot to hell. It’s not an insignificant comfort that Liberty Belle lived up to that legacy. Losing an aircraft is part of the risk of maintaining a flying museum such as this, but getting the opportunity to see it in person is something an aviation buff like myself will not soon forget.

Fixed slow Chrome on Ubuntu due to DNS

After upgrading Ubuntu to 11.04 I found Chrome to be rather slow when resolving sites, making it rather unusable. Firefox on the other hand seemed to be running OK.

Having had slow DNS issues over the years in Ubuntu, I did a quick search and found this:
http://falcon1986.wordpress.com/2010/06/01/how-to-speed-up-google-chrome-on-ubuntu/

It is indeed a DNS setting and following the instructions in that post made a world of difference. Chrome is usable again.

Post Formats in WordPress 3.1 – keeping your sanity

A major new feature in WordPress 3.1, which was released on February 23, 2011, is Post Formats. While maybe not game changing, it is a powerful feature that provides an elegant way to customize how a post looks in a standardized, portable way.

Many theme developers used categories or custom taxonomies to provide the same functionality, but in an ad-hoc way. Post formats are a replacement for hacking categories to customize the display of specific posts. It allows you to select a format from a predefined list.

In technical terms, post formats are a new taxonomy, a new box in the Post Edit screen, and a set of functions that expose the selected values to the theme.

Post formats are not customizable. The theme must specifically add support for them, and must activate specific formats, but new formats cannot be added. The reason for this is portability and standardization; Otto on WordPress has a great writeup about the reason behind this standardization.

To activate post formats in your theme, put this in functions.php:

add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );

This function must be called before the init hook, “after_setup_theme” is a good hook to use, according to the Codex.

The second parameter is a list of post formats to activate. Each that you list will appear in the “Format” box in the post edit screen. You can only choose from the preselected list, any non-standard formats will be ignored; I know, I tried using “dog”, “cat”, “food”. Here is the list of acceptible formats:

  • aside
  • gallery
  • link
  • image
  • quote
  • status
  • video
  • audio
  • chat

The theme developer has the freedom to implement and style these formats as they please, but they are obviously geared toward specific, common uses, which adds to the standardization and portability we discussed earlier.

Exposing the post format

A lot of people have already written about how to implement the post formats in your code. Be careful about where you read it, check the date. There are a lot of posts that were published before WordPress 3.1 was released, so they may not have the most current information. In addition to the Codex page on post formats, here are some other resources that will help give you an idea of what the loop code can look like:
http://www.snilesh.com/resources/wordpress/wordpress-3-1-post-formats/
http://bavotasan.com/tutorials/wordpress-3-1-post-formats/

The following template tag functions are provided to detect and utilize the post format:

Each accepts post_id as a parameter, or can be used within The Loop without providing the post_id. The functions we will probably use the most are get_post_format and has_post_format. Either can be used within The Loop like any other template tag function.

while (have_posts()) {
the_post();
if ( has_post_format( 'video' )) {
echo 'this is the video format';
}
}

From here, it’s pretty straightforward; refer to the resources I referenced earlier for more examples. Your loop code would have to test for each post format and put special handling code in if blocks. Is that the best way to handle it? No, I have a better idea.

Keep your sanity using template parts

Do you use the loop template part? If not, you should. It allows you to put the code for your loop into its own file, keeping it separate and allowing clean re-use of the loop code across many different templates. Before this was an option, we would have identical code on several different template files, or we would just use include_once() to get our custom loop template.

The function get_template_part ($slug,$name) allows us to safely include a template file. This is often used to get the loop: get_template_part(‘loop’), which allows us to keep several different loop files: get_template_part(‘loop’,’page’) which gets loop-page.php or get_template_part(‘loop’,’post’) which gets loop-post.php. The parameters accepted are not limited to predefined template types, so we can use it within our loop template to grab a format sub-template:


while (have_posts()) {
the_post();

if (has_post_format(‘aside’)) {
get_template_part(‘formats’,’aside’);
} else if (has_post_format(‘gallery’)) {
get_template_part(‘formats’,’gallery’);
} else {
get_template_part(‘formats’,’standard’);
}
}

This setup will allow you to put your format-specific code in sub-templates:
formats-aside.php
formats-standard.php
formats-gallery.php

Another way to go about it, using the get_post_format() function, which will allow us to avoid the if/else blocks:


if ( have_posts() ) {
the_post();
$format = get_post_format();
if (! $format) {
$format = 'standard';
}
get_template_part('formats',$format);
}

I am a proponent of clean, reused and manageable code, so this method really appeals to me. One thing to look out for is if a post format is selected that you haven’t added a child template for. In this case, get_template_part() fails somewhat gracefully by not doing anything, but does not provide any way for you to determine if it was able to find the template, so be sure you have child templates for all the post formats you have enabled! The worst case scenario is that an unsupported format will result in a blank post, but there are ways to provide a fallback, such as using output buffering to assign the contents to a variable and testing to see if it’s empty.

Summary

Post formats provide a powerful way to customize how individual posts are displayed and formatted, in a standardized and portable way. It will allow blogs to visibly show differences in different types of posts, and really expands the flexibility of WordPress. There is already a lot of good information out there, but be sure it’s current as much of it was published before the feature was finalized. Using the child template setup, you can find a manageable way to organize your format code. Have fun, leave a comment if you have a question or something to say.

Displaying post date in WordPress

I made a discovery today that probably should have been obvious as much as I work with WordPress. I’m not going to make excuses, except that apparently I’ve never taken the time to read the documentation for “the_date()”.

Ever noticed that if you use the template tag “the_date()” when outputting a list of posts, like a “Recent News” section, that several of the posts may appear to be missing their date? You may not have noticed it if each post was published on a different day;  the_date() outputs once for each day. If you have multiple posts in your query results that have the same publish date, the date will only be output for the first.

I actually think it’s a pretty cool little trick; in my ignorance, I’ve actually implemented it myself. However, I wish you could turn it off.

You can’t turn it off, but you can use “the_time()” instead. Be default, the_time() outputs the publish time in whatever format you have selected in your site settings. You can pass in a standard PHP date format string so that it will show whatever part of the publish time you wish. Bahrain My favorite is ‘F jS, Y’, which outputs like this: ‘January 30th, 2011’.

You can also use “get_the_date()”, which takes the same formatting string parameter. The different is, it returns the string rather than echoing it. Oh, and it’s always a good idea to read the documentation.

See more

Formatting Date and Time:
http://codex.wordpress.org/Formatting_Date_and_Time

Function Reference/the_time:
http://codex.wordpress.org/Template_Tags/the_time

Function Reference/the_date:
http://codex.wordpress.org/Function_Reference/the_date

And, of course, the PHP date formatting guide which I refer to all too often:
http://us2.php.net/manual/en/function.date.php

WordPress 3.0.4 is out

http://wordpress.org/news/2010/12/3-0-4-update/

A new version of WordPress, 3.0.4, is out and the WordPress team is strongly encouraging WP users to update.

This update has to do with KSES (http://sourceforge.net/projects/kses/) the html sanitation library used in the WP core and fixes a XSS vulnerability.

As serious as XSS vulnerabilities can be, it’s probably a good idea to apply this update as soon as you can. The WordPress automatic update makes applying these updates pretty much painless if your site supports it. Otherwise, unpack the zip file and push it up via FTP, SCP, SSH, etc. Since this is not a major version update, I don’t find it necessary to remove all core WP files before pushing the new ones up. If you are selective about which files you push up while updating, make sure you upload all the files in the root folder. Even if you push all files in wp-admin and wp-includes, the file which tells WP which version is installed is in the root so if it’s not pushed up WP will not recognize that it has been updated.

Strange Loop 2010 – geek out in STL

Strange Loop 2010 was a lot of fun. Delta Systems went as a group…that amounted to myself, Steve Powell and Brad Griffith. It’s an easy and accessible conference close to home, but the line up was good and it was well organized and executed.

If I were to overgeneralize the event, it would be Clojure, NoSQL, Node.js, Java and FanBoys. It was really an emerging web technology summit with a focus on JavaScript, non-associative databases and the future of our industry. Guy Steele from Oracle gave an enlightening talk on thursday evening about parallel programming with a fantastic intro where he reverse-engineered a punch-card program he wrote on the IBM 1130. I’m fascinated by computer history, so this was awesome. Douglas Crockford’s closing keynote was a high point. “Heresy and Heretical Open Source: A Heretic’s Perspective” talked all about open source, JSON, JavaScript and the “don’t do evil” software license. It included a great tribute to Grade Hopper. She was here first, we owe it all to her. Oh, and IE6, 7 & 8 must die!

A group panel on the future of programming combined the talents of Guy Steele and Douglas Crockford with some more talented guys for an entertaining, informative exchange.

One my the talks I looked forword to most and enjoyed the most was on the evolution of Flickr. As a long-time user and fan of Flickr i twas fascinating to have a peek inside. The chaos of the startup environment sounds so familiar to some of the things we experience from time to time in a web development shop.

Another talk I got a lot out of was the beginning Android development talk, given by Ted Neward who also mediated the future of programming panel.

But that’s not all. All the talks I went to were informative, moved along at a good pace and covered relevant topics. Considering the distance traveled and the quality of speakers, it was well worth the time. I don’t  spend much time in St Louis and had never been to The Loop. It was interesting and fun. It would be fun to spend a weekend there.

I would definitely go back to Strange Loop 2011 if circumstances allow; staying up to date on where the industry is headed, what other people think about the same things we work with all the time, and getting the chance to see giants in the field all contribute to the sometimes difficult task of keeping up while getting the work done. If you get the chance, I definitely recommend Strange Loop 2011.