Web Design Weekly #49

Headlines Yeoman A robust and opinionated client-side stack, comprised of tools and frameworks that can help developers quickly build beautiful web applications. Also check out this detailed post by Addy Osmani about Yeoman – Time-saving Developer Tooling Tips And Yeoman. (yeoman.io) jQuery 1.8 Beta 1 – See What’s Coming (and Going!) (blog.jquery.com) Sublime Text 2.0 Released (sublimetext.com) Articles How Much Does a Responsive Web Design Cost? Brad Frost (Mr RWD2, Ethan Marcotte being MR RWD1) puts down some really great thoughts and considerations about the cost of responsive web design.…

The Best of the Best Boilerplates / Bootstraps

Boilerplates, bootstraps or whatever you want to call them have become a valuable resource for any web developer. Not only do they provide great knowledge into the best practices to use, they also save us vast amounts of time. Back in the day, there was great pleasure in coding something up from scratch. In this day and age, I think most people are more than happy to start with a base, whatever that base might be. All of the resources listed below can be used in any way that suits…

Web Design Weekly #48

Headlines Aaron Draplin This interview with Aaron Draplin on The Great Discontent blog is badass. If you don’t have time to read it now, bookmark it! If you dig the article, be sure to also check out this video which is an all time favourite – CreativeMornings – Aaron James Draplin. (thegreatdiscontent.com) Southstreet – Progressive Enhancement Workflow The Filament Group seem to be one of the most active when it comes to responsive web design. This week they uncovered a heap of great tools and workflow advice that they use.…

HTML Lists

HTML lists are very common in everyday web development. You might be familiar with unordered lists (<ul>) and ordered lists (<ol>), which are the most commonly used, but you might not be aware that there are a few other options to consider. Like the definition list (<dl>) and the menu (<menu>) element, which was deprecated in HTML4, but has been reintroduced in HTML5. Unordered Lists – <ul> An unordered list of items or text. The HTML unordered list element (<ul>) represents an unordered list of items. The list items do…

How to retrieve attachments from child pages of a specific Page?

How would I retrieve attachments from all subpages of a specific Page ID? Example: SPECIFIC PAGE Child (with attachments) Child (with attachments) Child (with attachments) I’m currently using this code to retrieve all attachments site-wide, however I would like to limit this to only pull images from all children of a specific Page. $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’ => null, ‘post_parent’ => null ); $attachments = get_posts( $args ); if ( $attachments ) { foreach ( $attachments as $post ) { setup_postdata( $post ); the_title();…

Web Design Weekly #47

Headlines WordPress 3.4 “Green” WordPress 3.4 is here and out the door. This release includes significant improvements to theme customisation, custom headers, Twitter embeds, image captions and lots more. (wordpress.org) What iOS 6 Mobile Safari Offers Front End Devs (taitems.tumblr.com) CSS variables just landed in WebKit (trac.webkit.org) Hello Opera 12 (my.opera.com) Articles Responsive images: what’s the problem, and how do we fix it? Responsive images is a surprisingly complicated topic, and one that’s been steadily gaining attention over the last year as more developers discover they need them and then…

Tabs to Spaces in Sublime Text 2

Super quick tip on how to tweak the Sublime Text 2 spacing. Doing these small adjustments to your setup will help to provide consistent whitespace when working with others as long as they have also follow a similar setup on their text editor of choice. Running time: 3:08 Screencast Snippet to be added to Preferences > Settings – Users "draw_white_space": "all", These links might also be worth investigating: EditorConfig EditorConfig – Sublime Text 2 plugin Happy whitespace! Source: web design weekly

Idiomatic CSS

Principles of writing consistent, idiomatic CSS. The days of a simple web page seem to be long gone for me so reading documents and adopting the best practices are a must to improve as a developer. This document is in its early days and will no-doubt evolve and become a “go-to” source. The document is broken down into 8 sections: General principles Whitespace Comments Format Naming Practical example Organization Build and deployment Each section is explained very clearly and the practical example ties all the explained styles/patterns into one very…

get_categories only getting categories in the main language

I am trying to retrieve in the « content composer » the categories of projects based on the active language. But i only get the categories off the main language, never on the other. My code is: Category All $categories = get_categories(‘taxonomy=jw_portfolio_categories’); if(!empty($categories)){ foreach($categories as $cat){ ?><option value= »<?php echo $cat->term_id; ?> »><?php echo $cat->name; ?></option><?php } } ?> </select> Any idea on how to get all the categories or the ones of the active language in the WP backoffice? Source: https://wordpress.stackexchange.com/feeds