Skip to Content

March 2015 - benchung.com

Display Related Posts in WordPress Without a Plugin

|WordPress|0 Comments

Adding links within articles to related posts is a great way to polish the SEO on your WordPress site, but at times It can be redundant, time consuming and hard to remember what articles are related. So why now automate it!? Here is a great way to do so by displaying a non obtrusive list of related posts. Simply paste this below the content area of your article in single.php or whatever template file your single posts are reading from. By the way, this code is taken and tweaked a little from:? How to Display Related Posts in WordPress on Wp Beginner. <?php //basic list of 5 post title…

Trackball Controls in three.js

|Three.js|0 Comments

This tutorial explains how to rotate the camera with the mouse in three.js. This can be accomplished using the built-in TrackballControls.js. Test it out on the below. Rotating the object around by holding down the left mouse button and dragging. Zoom with the middle and pan from side to side with the right mouse button. Download the source code for this tutorial. This example rotates the camera around the object in all directions, to take a look at a different kind of mouse tracking technique where the mouse rotates the scene on a view plane please see Rotating View with the Mouse in Three.j…

Loading Screen in Three.js

|Three.js|0 Comments

For this tutorial, we'll be creating a Loading Screen in Three.js using the html5 Heartcode Canvasloader for our loading icon and the three.js LoadingManager to tell it when to appear. If you're new to Three.js please see Creating a Basic Scene in Three.js (more…)

Clearing Thumbnail Lists in CSS

|CSS|0 Comments

Clearing floated lists are a common need when working with thumbnails whether for a gallery or blog layout. Here's a solution that actually works and is inspired by this. Below is the example (more…)