Puddinq.com sharing knowledge
';

Strip query request from url

Date interval

scrape indeed

The above code outputs the company review on your site (example is for philips)

Double sql join query

Getting WordPress features images (_thumbnail_id) that have an empty caption and return the ID’s and there relative path (_wp_attachment_file).

Use production uploads on local development

in your .htaccess Just serve everything from production (add to .htaccess in root) Or place in .htaccess in uploads folder to only look for files in production that do not exist in development or your nginx

Do not autocomplete login field (or others)

Inputfields are quality content in ‘the web’ world, they send valuable information from the guest to the server. Some inputfields are repeatetly used very often with different inputs. If you have extensions or browser software that autocompletes the fields this can be very annoying. To turn autocomplete off simply set autocomplete to false:

Wp gravity forms and menu access for editor role

It is preferable to give ( even paying clients ) and editor role instead of an administrator role. This way you can be in control over theme settings and plugin installations / updates. But there are some things you can a allow your editor to control that do not fit in the role capabilities. Two […]