{"id":4453,"date":"2014-05-17T09:35:56","date_gmt":"2014-05-17T09:35:56","guid":{"rendered":"http:\/\/demo.momizat.net\/goodnews\/?p=116"},"modified":"2014-05-17T09:35:56","modified_gmt":"2014-05-17T09:35:56","slug":"practical-tips-from-top-wordpress-pros","status":"publish","type":"post","link":"https:\/\/bulandrashtrawadi.in\/?p=4453","title":{"rendered":"Practical Tips From Top WordPress Pros"},"content":{"rendered":"<p>Practical Tips From Top WordPress Pros Recently I shared with you some <a href=\"http:\/\/www.smashingmagazine.com\/2013\/02\/01\/wordpress-community-offers-advice-beginners\/\">advice from the WordPress community to beginners<\/a>. But what if starting out is already a dim memory? What if you\u2019re already so <strong>immersed in the world of WordPress<\/strong> that you dream of Trac and you bore your partner with talk of your latest achievement with custom post types?<\/p>\n<p>Below are some tips from WordPress pros from across the community. Many of the tips cover development, but there\u2019s also advice on business, running your website and, of course, getting involved with the community.<\/p>\n<p><a href=\"http:\/\/media.mediatemple.netdna-cdn.com\/wp-content\/uploads\/2013\/03\/Wordpress-start-image.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-108643\" src=\"http:\/\/media.mediatemple.netdna-cdn.com\/wp-content\/uploads\/2013\/03\/Wordpress-start-image.jpg\" alt=\"Wordpress-start-image\" \/><\/a><br \/>\n<em>Image: <a href=\"http:\/\/www.flickr.com\/photos\/oakleyfamily\/4919659112\">Phil Oakley<\/a><\/em><\/p>\n<h3>Tips For Developers<\/h3>\n<h4>USE EVERYTHING WORDPRESS HAS TO OFFER<\/h4>\n<p>WordPress\u2019 core can do a lot for you, without you having to write a bunch of code. WordPress is much more powerful when you make use of its APIs and built-in functionality. \u201cIf you use WordPress as your framework,\u201d says <a href=\"http:\/\/trentlapinski.com\/\">Trent Lapinski<\/a>, \u201cit will enable you to focus on developing an innovative plugin or theme.\u201d<\/p>\n<p><a href=\"http:\/\/matty.co.za\/\">Matty Cohen<\/a> recommends always looking for and using functionality available within WordPress before creating a function from scratch. \u201cExamples of this include, at the higher level, using the WordPress Settings API and, at the lower level, using the<code>media_handle_upload()<\/code> function to upload your files, rather than a custom upload routine.\u201d Matty gives an example of this with his <a title=\"WooSlr \" href=\"http:\/\/www.woothemes.com\/products\/wooslider\/\">WooSlider<\/a> plugin. In order to create a familiar and consistent experience for <a href=\"http:\/\/woothemes.com\/\">WooThemes<\/a> users, he did the following:<\/p>\n<ul>\n<li>He used the Settings API for the settings screen.<\/li>\n<li>He added a tab to the \u201cUpload\/Insert Media\u201d popup for creating shortcodes. This interface uses a combination of the Settings API, custom form-creation logic, and some custom JavaScript to create the HTML output and the shortcode.<\/li>\n<\/ul>\n<p><a href=\"http:\/\/media.mediatemple.netdna-cdn.com\/wp-content\/uploads\/2013\/01\/wooslider.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-78211\" title=\"wooslider\" src=\"http:\/\/media.mediatemple.netdna-cdn.com\/wp-content\/uploads\/2013\/01\/wooslider.jpg\" alt=\"Screenshot of WooSlider settings\" \/><\/a><br \/>\n<em>WooSlider uses built-in WordPress functionality to make the user experience better.<\/em><\/p>\n<p>Making use of everything WordPress has to offer results in less coding for you and a better overall experience for users. But those aren\u2019t the only benefits. <a href=\"http:\/\/amyhendrix.net\/\">Amy Hendrix<\/a> points out that the code you write will be future-proof. Writing your own scripts could eventually result in conflicts.<\/p>\n<h4>USE HOOKS<\/h4>\n<p><a href=\"http:\/\/codex.wordpress.org\/Plugin_API#Hooks.2C_Actions_and_Filters\">Hooks<\/a> are the means by which you hook into WordPress and add your own code without modifying core files. There are two types of hooks: actions and filters. Action hooks are places where you can insert and run code. Filters are used to manipulate output.<\/p>\n<p>If you\u2019re working with WordPress\u2019 core and with plugins and themes, then you should be extending by making use of all of the hooks available. Adam Brown maintains a <a title=\"WordPress hooks database - action and filter hooks for wp plugin developers -- Adam Brown, BYU Political Science\" href=\"http:\/\/adambrown.info\/p\/wp_hooks\">list of all of the hooks<\/a> that have ever appeared in WordPress.<\/p>\n<h4>IMPLEMENT HOOKS<\/h4>\n<p>Create your own hooks. By implementing hooks in your plugins and themes, you create opportunities for other people to extend them and create add-ons. <a href=\"http:\/\/tri.be\/\">Shane Pearlman<\/a>believes that by doing so, you \u201cencourage plugin developers to make opportunities for the community to extend and also use them.\u201d<\/p>\n<p>Not only does this create opportunities for other developers, but you make life easier for yourself. \u201cWith a \u2018well-hooked\u2019 theme or plugin,\u201d says <a href=\"http:\/\/codeforthepeople.com\/\">Simon Wheatley<\/a>, \u201cyou can make adjustments between clients, or between sites on a multisite setup, a lot more easily than by effectively forking your own code for every scenario.\u201d<\/p>\n<h4>WRITE SECURE CODE<\/h4>\n<p>If you write plugins or themes, keeping the code secure is critical. How bad would you feel if your code was responsible for websites getting hacked? <a href=\"http:\/\/webdevstudios.com\/\">Brad Williams<\/a>recommends learning <strong>how data validation pertains to WordPress<\/strong>. A detailed <a href=\"http:\/\/codex.wordpress.org\/Data_Validation\">page on data validation<\/a> can be found in the Codex; so, if you\u2019re a developer, you have no excuse for writing insecure WordPress plugins and themes. Following the guidelines will ensure that your code is safe and secure from exploits and hacks. As <a href=\"http:\/\/ryanhellyer.net\/\">Ryan Hellyer<\/a> points out, \u201cHaving a beautiful website which does exactly what a client requires is great, but it\u2019s not so great when it gets injected with spam links and is de-indexed from search engines!\u201d<\/p>\n<h4>FOLLOW BEST PRACTICES<\/h4>\n<p><a href=\"http:\/\/fusionized.com\/\">Ryan Duff<\/a> and Brad Williams highlight some best practices that developers should stick to:<\/p>\n<ul>\n<li>Make sure the data that you\u2019re passing is always being passed in the way it\u2019s expected to. Setting a variable on an incorrect line could result in a trickle-down effect of error messages.<\/li>\n<li>WordPress has <a title=\"WordPress Coding Standards \u00ab WordPress Codex\" href=\"http:\/\/codex.wordpress.org\/WordPress_Coding_Standards\">coding standards<\/a>, so stick to them. This will keep your code in a format that all WordPress developers will recognize, making bug tracking much easier!<\/li>\n<\/ul>\n<h4>EMBRACE THE CODE BASE<\/h4>\n<p>Both <a href=\"http:\/\/helenhousandi.com\/\">Helen Hou-Sandi<\/a> and <a href=\"http:\/\/10up.com\/\">Jake Goldman<\/a> of 10up recommend that you spend time looking at the code base. As Jake points out, \u201cRelying on the Codex and Google searches for solving unique problems with WordPress is like trying to tune a car\u2019s performance without ever looking under the hood.\u201d <a href=\"http:\/\/rachelbaker.me\/\">Rachel Baker<\/a> also suggests looking at the change logs, and Silviu-Cristian Burc\u0103 points us to his advice in \u201c<a href=\"http:\/\/scribu.net\/wordpress\/how-to-become-a-wordpress-guru.html\">How to Become a WordPress Guru<\/a>.\u201d<\/p>\n<p>A good integrated development environment (IDE) for PHP \u2014 such as NetBeans, PhpStorm, phpDesigner or Vanilla Eclipse \u2014 will offer <strong>code auto-completion for WordPress functions<\/strong> and their arguments and will display documentation on functions inline. You\u2019ll be able to easily jump to function and class declarations to study them. \u201cThink the core code base is too scary?\u201d asks Jake. \u201cPick a file in <code>wp-includes<\/code> and start reading \u2014 you might be surprised by how approachable it is, and how much you can learn.\u201d<\/p>\n<p>Looking at the code, as Helen adds, also increases the likelihood that you\u2019ll find a way to contribute code to the WordPress project. You\u2019ll also become familiar with plugins and themes, understand how people do things properly, and recognize when they get it wrong.<\/p>\n<h4>SHARE YOUR CODE<\/h4>\n<p>It\u2019s in the nature of code in an open-source project to be shared, forked and iterated on. If you\u2019re working on solutions, then share them with the community. \u201cShare and publish your solutions, as a plugin, widget or theme,\u201d says <a href=\"http:\/\/www.catiakitahara.com.br\/\">C\u00e1tia Kitahara<\/a>. \u201cNot for every project, but with most of them, we end up with a solution that could be of use to many others. So, do it as a way of giving back to the community. I know it takes time to prepare something to be distributed through the repositories, but remember the time WordPress saves for us!\u201d<\/p>\n<p>You could put your code on <a href=\"https:\/\/github.com\/\">GitHub<\/a>, which <a href=\"http:\/\/ben.balter.com\/\">Ben Balter<\/a> recommends:<\/p>\n<blockquote><p>\u201cGitHub\u2019s got a very different culture, and the ability for anyone to submit a pull request is a real game changer. It really lowers the barrier to contribute, and democratizes the entire plugin authoring experience. As a bonus, use GitHub\u2019s built-in wiki functionality to maintain your plugin\u2019s documentation (especially FAQ), so that anyone, even non-technical users, can contribute.<\/p>\n<p>Lastly, if you have plugin tests, integrate with Travis CI so that you can automatically test pull requests before merging. To help you get started, a handful of tools are out there, such as GitHub \u2192 WordPress.org deployment scripts and GitHub wiki \u2192 WordPress readme converters.\u201d<\/p><\/blockquote>\n<p><a href=\"http:\/\/jumping-duck.com\/\">Eric Mann<\/a> points out that if you\u2019ve built your project in isolation, then you\u2019re likely missing out on different approaches. Sharing your code with people gives them the opportunity to point out how it can be improved. WordPress itself is built collaboratively and is the result of hundreds of minds looking at it from different perspectives. If you want your code to excel, you should be sharing it, too.<\/p>\n<h4>USE CUSTOM POST TYPES<\/h4>\n<p>Taking advantage of custom post types for specific use cases is a great way to <strong>leverage WordPress<\/strong>. At the <a title=\"The Theme Foundry\" href=\"http:\/\/thethemefoundry.com\/\">Theme Foundry<\/a>, Drew Strojny has three custom post types: themes, stories and tutorials. This enables members of his team to quickly find and create content.<\/p>\n<p>Drew recommends making custom post types even more flexible by adding custom meta data. This enables you to style your content and provides opportunities to reuse that meta data across your website. He provides the example of the meta data he uses with the \u201cStory\u201d post type in use on his \u201c<a title=\"Stories \u2014 The Theme Foundry\" href=\"http:\/\/thethemefoundry.com\/stories\/\">Customer Stories<\/a>\u201d page.<\/p>\n<p>from : http:\/\/www.smashingmagazine.com\/2013\/03\/20\/practical-tips-top-wordpress-pros\/<\/p>\n<blockquote class=\"mom_quote \" style=\"font-family:verdana;font-size:14px;font-style:italic;border-left-color:#dd9933; color:#474747; background-color:#F5F5F5; \"><span class=\"quote-arrow\" style=\"border-left-color:#dd9933;\"><\/span>This Demo Content Brought to you by <a href=\"http:\/\/momizat.com\/\" target=\"_blank\" rel=\"dofollow noopener\">Momizat Team<\/a> <\/blockquote>\n<h2>this is tags and keywords : wordpress themes momizat Tutorial wordpress  templates<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>Practical Tips From Top WordPress Pros Recently I shared with you some advice from the WordPress community to beginners. But what if starting out is already a dim memory? What if you\u2019re already so immersed in the world of WordPress that you dream of Trac and you bore your partner with talk of your latest [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":121,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"video","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[75,78,79,80,83],"_links":{"self":[{"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/posts\/4453"}],"collection":[{"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4453"}],"version-history":[{"count":0,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/posts\/4453\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/media\/121"}],"wp:attachment":[{"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}