Shtigliz Design

Dynamic google map with multiple markers

Lately i need to use the google API to create maps with multiple markers. Obviously, the operation need to get the markers latitude and longitude from somewhere and i used database. Basically the process is easy: we create an ajax call and create the markers with a loop and then display them on a map.

How to create a roles based query in wordpress

Wordpress is a really flexibile CMS, but it is not perfect and sometimes it is truly inefficiant. Lately i needed to create a query that bring back multiple users by roles. Now wordpress have a user query but it doesn’t allow you to pass an array of roles. So, let’s see a work around.

Creating an ajax chart with Morris

Sometimes we need to display data in a visual way, for aesthetic reasons or readability ( not going into a long and boring data tables). Lately i used Morris Charts to display electricity consumption, and it is a very good library and verstile. In this tutorial i use it with an ajax call and make it all dynamic, let’s start.

So you got the WordPress white death page?

One of the facts you will have to face at some point while working with wordpress is that you will get the blank white page, instead of your amazing stylezed site. first thing, relax. You have probably made something just before it happaned,installed a plugin or defined it. So, what to do? Good you asked.

Basic Ajax call with jquery

After i have learnt HTML and css i understood that i must learn also javascript. Well, i hated every minute and did whatever i could to not use it. Since i new flash and actionscript i preferred it on JS, and when i had no choice i preferred to make Dreanweaver write JS for me. I guess you can tell how much i disliked JS