Seattle’s Aurora bridge, cyanotype print by Peter Mumford Problem: how to get WordPress-style pretty permalinks into an Angular app? I want my permalinks to have this format: http://domain.com/2017/02/post-slug-here I want single posts and category and tag archives to contain slugs, not IDs in the URL.
I added pagination to Cherrytree, my Angular client for the WordPress API. The key to this is knowing what Angular’s ui-router can do. This post by Aviv Ben-Yosef was very helpful: Simple pagination and URL params with ui-router. It explains how to set up routes with ‘squashed’ parameters, and make simple pagination functions in your controller.
My cheat sheet for shortcuts for Atom + Sublime’s multiple cursors Using text editors these days is so nice! I’m a big fan of Atom. The best part of course is the multiple cursor feature, which Atom shamelessly copied from Sublime Text. My only trouble is not remembering the keyboard shortcuts.
I coded up an Angular 1.5 app that shows the posts from my WordPress blog. It fetches post data from this site’s Rest API. A proof-of-concept is here: Cherrytree. The repo is on my Github: Topheavy-Angular. It shows a ‘default’ listing of posts on the front page, which is equivalent to the default WordPress loop.
oikos get attachment link filter This fixes a flaw in the WP gallery shortcode. The problem is that when you make a gallery, and you set link to "file", it links to the original. That might be a 10M jpeg. This function links to the large instead of the original. On every site with galleries, I install lightbox and this nice little filter.
Benach Ragland’s re-design went live Feb 2, 2015. It was photographed, videoed and designed by Llewellyn Creative. And I coded it up in a wordpress theme. It was a very satisfying project. I used underscores for a starter theme, and found it to be flexible and fast (underscores has now replaced the outdated Handcrafted as my starter theme of choice).