Monthly Archives: July 2014

Wordpress proper query_posts with real results

Description: WordPress query_posts() function is pretty powerful, and easy to read out. However, you need to know what you’re querying for, as very often the results are not the expected ones. The specific post meta query is covered here. Solution: … Continue reading

Posted in Wordpress | Tagged , , , , | Leave a comment

Retrieve coordinates when click on image

Description: HTML forms allow the use of an image as a submit button, and the action triggers the send of the x and y coordinates of the click relative to the image size. However, why not take it to the … Continue reading

Posted in Javascript, Script | Tagged , , , | Leave a comment

Change button text value on HTML input type file

Description: Browsers render by default “Choose file” (or similar, depending on browsers and locale settings) when an input of type “file” is detected. Solution: Unfortunately there is no easy solution.  <input type=”file” name=”inputFile” id=”inputFile” /> This is pretty much all … Continue reading

Posted in Best practices | Tagged , , | Leave a comment

Move Wordpress database

Description: Moving an existing WordPress database is the easiest solution for changing website domain, duplicating content and so on, when we don’t want to lose posts, configurations and other meta data. However, this brings along also the connection to the … Continue reading

Posted in SQL, Wordpress | Tagged , , | Leave a comment