How to optimize custom WordPress query

If you are here now that means that you have slow WordPress theme/plugin or single page where you’re using custom query. Yes, we all know that situation and lets see how to speed up your custom query.

 

Clover – WooCommerce Gateway

Hello to all,

I started developing Clover payment gateway for WooCommerce.

Clover replaces your cash register, payment terminal, receipt printer, and barcode scanner with an integrated suite of products. Accept credit cards, EMV, and Apple Pay.

Get to know your business and your customers better with reports you can run at work or from home and applications that streamline your workload.

Plugin is near the end of developing. Stay tuned I will let you know about release and prices.

plugin_clover_gateway

If you have any questions or comments, please feel free to contact me.

Faruk

WordPress snippets part#1

When you’re a WordPress or PHP developer, you code whole the time some methods and loops and you spend a lot of time on it. The worst thing is, for example, when you have a problem with loop or paging and then you spend some extra time to fix that. It is not a problem if you are not sure and if you are not experienced in that. Problem is when you make it every day last few years. Experienced programer doesn’t like to spend time on some typing mistakes and that is upsetting for him. Almost all of us, especially WordPress developers, use snippets. The snippets are the most commonly used pieces of code. It can be: creating post type, changing login logo, loops, tw bootstrap menu

I decided to share with you some of my snippets, some snippets which I found and that are (in my opinion) good.

Let’s start with some sublime snippets for WordPress which I found:

WordPress Meetup Zagreb

I spoke on 6th WordPress Meetup in Zagreb – Croatia about the difference between professionals and amateurs. This is very popular topic on every event which is related with programming. My talk was split in three parts:

  1. Who are the amateurs and how amateurs work?
  2. Who are the professionals and how professionals work?
  3. The best three advices on how to improve your professionalism.

My talk in press:

Outsourcing opportunities in Bosnia and Herzegovina

Why Bosnia and Herzegovina?

Bosnia and Herzegovina is a country on the Balkan peninsula of Southern Europe. In 2008 Bosnia and Herzegovina has signed the stabilisation and association agreement (SAA) with the EU, which means the country is now on the way of becoming a member of the European Union, and with its’ membership in the World Trade Organization (WTO), and NATO’s Partnership for Peace program, Bosnia and Herzegovina has stabilized politically and economically over the past few years.

Bosnia and Herzegovina has successfully progressed in many industries since the 90’s, primary IT and electronics, tourism, power, telecommunications, construction, textile, and agriculture.

The following advantages for outsourcing to Bosnia and Herzegovina are important to consider:

  • Ideally located – at the crossroads between West and East, the Mediterranean and Continent
  • Only two hours by air from any European business centre
  • Low costs for running IT projects
  • Central European Time (UTC + 1 hour)
  • Highly qualified and motivated labour force, very skilled in foreign languages
  • Robust economic activity
  • Business environment to EU standards
  • Stable currency linked with Euro

The official population of Bosnia and Herzegovina is 3.9 million. The capital of BiH is Sarajevo.

If you have any questions about investing in IT industry in Bosnia and Herzegovina please feel free to contact me.

More sources:

Tri godine aman aman

Sve je počelo na Joomla!Day konferenciji u Tešnju august – 2011. godine. Tu sam upoznao Harisa Alibegovića (Lav Promocija – Zagreb). Za vrijeme trajanja konferencije razmijenili smo iskustva iz web developmenta. Samo 1 mjesec kasnije (septembar) dobijam zahtjev za ponudu od Harisa za izradu Joomla komponente i malog widgeta. Već na prvom poslu ostvarili smo saradnju te realizovali prvi projekat. Nakon tog posla odlazim u Zagreb na kafu sa Harisom da sumiramo rezultate urađenog posla te pričamo o daljim mogućim angažmanima.

U tom periodu Haris pokreće Joomla treninge u Zagrebu i kaže da je interesovanje, na moje opšte čuđenje, veliko. Kako moj mozak radi 1000 na sat odmah se pali lampica koja traži mogućnosti kako nešto slično da pokrenem u BiH. Naravno, to sam i uradio!

2 mjeseca kasnije (decembar) prezentujem svoj plan u Zenici u jednoj lokalnoj školi stranih jezika i od tog dana ništa više neće biti isto. Ne, nisam danas vlasnik moderne škole web dizajna, nego naprotiv, sa edukativnim aktivnostima sam u potpunosti stao.

Nego, toga dana upoznajem prelijepu mladu damu (u pravom smislu te riječi) koju 10 mjeseci kasnije ženim tj. ona mene … ne znam, nije ni bitno. 🙂

U tih 10 mjeseci se nije desilo ništa spektakularno po pitanju posla, osim što sam realizovao kurs web dizajna te radio nekoliko dobrih projekata. Kako to inače biva kod mene, ako ne postanem dobar prijatelj sa svojim klijentom, što se najčešće desi, onda sam ga sigurno prekrižio za sva vremena.

Dolazi vrijeme kada je trebalo uploviti u bračne vode (oktobar 2012). Doduše ja sam uskočio, bez neke posebne ideje kako bit to trebalo izgledati. No, poznato je koliko sam spontan, oni koji me znaju reći će i previše (odem na kafu u grad, vratim se nakon 3 dana kući). Nisam se bojao, znao sam ko mi je saputnik i koliko ja mogu ponuditi toj novoj vrsti zajednice. No, to nije isto kao izlaziti na kafu sa nekom osobom i viđati se povremeno. To je sasvim novi životni nivo, nova etapa, najenergičnija.

Selim u Zenicu. Supruga je radila u pomenutoj školi a ja sam bio freelancer. Freelancer znači da radiš samo kad ti treba. A kad si u braku onda ti uvijek treba. To je opet nešto novo za mene, nova brzina. Teško je prebaciti iz druge u petu vjerujte mi.

Pravilnim pristupom i konstantnim pritiskom a u isto vrijeme i podrškom od strane supruge brzo sam ušao u koštac s vremenom i obavezama. Nakon 2 mjeseca (januar 2013.) imao sam stalni angažman sa 2 poslodavca sa redovnim projektima, plus projekti koje sam sam ugovorio (1 svaka 2 mjeseca). To bi u principu značilo 3 projekta mjesečno. Koji tempo… 🙂 i tako 10 mjeseci.

Bilo je tu projekata manjeg budžeta a velikih napora, također velikog budžeta a malih napora, uglavnom vrtilo se fino. No to nije ono što bi zadovoljilo naše ambicije, pogotovo moje. U medjuvremenu selimo za Tešanj.

Krajem godine (novembar 2013.) javlja mi se prijatelj koji je bio direktor u jednoj Njemačkoj firmi u Doboju. Bave se razvojem software-a za turizam. Pozove me na testiranje za posao Zend programera. Položim test, odem na probni rad u Njemačku, dobijem posao, ne u Doboju, u Njemačkoj, odvedem ženu i ona dobije posao u istoj firmi. Radim naporno svakodnevno, učim sve te nove stvari sa kojima se nisam susretao ranije, realiziram nove projekte…

Da to je to, novi nivo o kojem sam sanjao… radim, imam posao. Ne tražim više poslove, oni dolaze sami, ja biram koji ću da uzmem. Sve je dobro kad nisi sam i kad imaš podršku u osobi koju voliš.