Skip to content

Instantly share code, notes, and snippets.

@opnchaudhary
Created January 26, 2015 10:27
Show Gist options
  • Save opnchaudhary/b598ad5de7817e55e045 to your computer and use it in GitHub Desktop.
Save opnchaudhary/b598ad5de7817e55e045 to your computer and use it in GitHub Desktop.
Compiled by : Sanjeev Shrestha (https://www.facebook.com/HunterGuyx?fref=nf)
[ Handfull things ]
* I use sublime text with vintage mode active, takes your speed to next level.
* Wordpress package for submime text. There is snippet that will help you to create custom post and widget within seconds. https://github.com/purplefish32/sublime-text-2-wordpress
* Sublime linter for checking errors http://www.sublimelinter.com/
* Prepros for compiling sass compressing css and javascript. https://prepros.io/
[ Things to keep in mind ]
* Follow WordPress Coding Standards. http://codex.wordpress.org/WordPress_Coding_Standards
* Use WordPress APIs when neccesarry. http://codex.wordpress.org/WordPress_APIs
* Think about the security. http://codex.wordpress.org/Hardening_WordPress
* Organinze your files. http://code.tutsplus.com/…/organizing-and-naming-your-theme… and https://tommcfarlin.com/organizing-wordpress-theme-files/[ you can use prepros as an alternative of codekit]
* And offcouse, use WordPress best practice. http://torquemag.io/best-practices-wordpress-theme-develop…/
[Theme development]
* If you like to use use theme frameworks. http://codex.wordpress.org/Theme_Frameworks
* I recommend you using Underscore theme as starting theme. http://underscores.me/
* Use sass to speed up your workflow. http://sass-lang.com/
* Use chrome developer tool or firebug.
* Use custom page template when necessary.Name your template file as page-homepage.php for homepage template. http://codex.wordpress.org/Page_Templates
* Create content page to display content. eg. to display content on page-homepage.php create file content-homepage.php and
use get_template_part( 'content', 'homepage' ); instead of including file.
* To display custom post type use WordPress default template setting. look at here
http://codex.wordpress.org/Post_Type_Templates
* you can use different header for different page. for e.g. create alternative header header-homepage.php and include it using get_header( 'homepage' ); and same goes with the footer. http://codex.wordpress.org/Function_Reference/get_header
* Do not simply link css or javascript in header or footer, use wp_enqueue_scripts.
http://codex.wordpress.org/…/Action_Refe…/wp_enqueue_scripts
* if you are using bootstrap 3 navigation menu and your navigation menu is crashing, you need to use walker class. Use
this hybrid walker class. https://github.com/twittem/wp-bootstrap-navwalker
* look at here to know what file is for what purpose. http://codex.wordpress.org/Theme_Development
* Wanna create theme option for your theme. Use wordpress settings api or use framework. Discussion is over here http://themeforest.net/…/best-wordpress-options-frame…/96600
* Wanna create your first wordpress theme? start over here. http://code.tutsplus.com/…/developing-your-first-wordpress-…
* Look at this free html5 templates and try to change them in next level wordpress template. http://html5up.net/
* There is tutplus course called "PSD to WordPress Minimal Portfolio" look at that. http://webdesign.tutsplus.com/…/psd-to-wordpress-minimal-po…
[Plugin Development]
* Use WordPress plugin boilerplate. http://wppb.io/
* Look at this codex for more information. http://codex.wordpress.org/Writing_a_Plugin
* Do not simply link css or javascript in header or footer, use wp_enqueue_scripts.
http://codex.wordpress.org/…/Action_Refe…/wp_enqueue_scripts
* There is wordpress cron job. If only necessary use custom croj job. http://codex.wordpress.org/Function_Refer…/wp_schedule_event
* Simple tutorial for wordpress plugin development. http://code.tutsplus.com/…/your-first-wordpress-plugin-simp…
* This course will cover what you need to be plugin developer. http://code.tutsplus.com/…/wordpress-plugin-development-ess…
* Use WordPress widget boilerplate. https://github.com/tommcfarlin/WordPress-Widget-Boilerplate
* To create your fist wordpress widget, look at here. http://code.tutsplus.com/…/introduction-to-creating-your-fi…
[Resources/ Inspiration]
* if you want to make an awesome wordpress theme. look some inspiration on http://themeforest.net
* http://codex.wordpress.org/
* http://premium.wpmudev.org/
* Got some problem? search or ask over here. http://wordpress.stackexchange.com/
* http://themeshaper.com/
* http://code.tutsplus.com/categories/wordpress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment