Complicated MySQL Query

Why not just use WP_Query for this instead of inventing the wheel all over again? I’m pretty sure you can solve this with a meta query within your WP_Query. See the codex.

menu_class showing up on DIV instead of UL

The reason this was happening was simple – I had just installed the theme and had not yet associated a menu with the ‘main_menu’ theme location. Once I had the menu assigned, the markup generated acted as expected. To assign a menu, go to Appearance > Menus then select the Manage Locations tab. On there … Read more

Unable to create directory

First issue is related with ownership of the directory. Second issue is, you will have to make directory within directory so consider using following UNIX command: sudo mkdir -p wp-content/uploads/2014/08 here p flag lets you create directory within directory Third issue is related with the file permissions ( theme-editor.php) use : ls -lah to view … Read more