Custom pagination plugin for wordpress