{"id":4459,"date":"2014-05-17T20:54:35","date_gmt":"2014-05-17T20:54:35","guid":{"rendered":"http:\/\/demo.momizat.net\/goodnews\/?p=191"},"modified":"2014-05-17T20:54:35","modified_gmt":"2014-05-17T20:54:35","slug":"powerful-wordpress-themes-tips-and-tricks","status":"publish","type":"post","link":"https:\/\/bulandrashtrawadi.in\/?p=4459","title":{"rendered":"Powerful WordPress Themes Tips And Tricks"},"content":{"rendered":"<p>I\u2019ve been working with WordPress since the dawn of time, and even though I peek at the source code regularly, I still discover new tips and tricks. I\u2019ve compiled my own list of 21 techniques that are handy, clever, fun or best practices rarely followed. I hope everyone finds something new in the list!<\/p>\n<p><a href=\"http:\/\/media.mediatemple.netdna-cdn.com\/wp-content\/uploads\/2013\/06\/21tips_mini.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-107026\" src=\"http:\/\/media.mediatemple.netdna-cdn.com\/wp-content\/uploads\/2013\/09\/21tips_mini-opt.png\" alt=\"21 tips\" \/><\/a><\/p>\n<h3>1. WordPress Themes Has A Ton Of Built-In Scripts<\/h3>\n<p>Using the great wp_enqueue_script() and wp_enqueue_style(), you can include styles and scripts easily with dependency management. But did you know that WordPress has a lot of scripts already built in? jQuery, many elements of jQuery UI, jQuery Form, SWF Object, Tiny MCE, Jcrop and Thickbox are just some the better known ones. The whole list can be <a title=\"A list of scripts included in WordPress\" href=\"http:\/\/codex.wordpress.org\/Function_Reference\/wp_enqueue_script#Default_scripts_included_with_WordPress\">found in the WordPress Codex<\/a>. If you\u2019re interested in learning how to use the enqueue functions effectively, I recommend \u201c<a title=\"Script and style management in WordPress\" href=\"http:\/\/www.smashingmagazine.com\/2011\/10\/12\/developers-guide-conflict-free-javascript-css-wordpress\/\">The Developer\u2019s Guide to Conflict-Free JavaScript and CSS in WordPress<\/a>\u201d right here on Smashing Magazine! WordPress Themes<\/p>\n<h3>2. Replace Built-In Scripts By Deregistering Them<\/h3>\n<p>If you live on the bleeding edge, you can use versions of scripts other than the built-in ones. Using a newer jQuery version is common (though not necessarily good) practice, which can be done in the following way<\/p>\n<p>But do <em>not<\/em> do this just to brag about using latest stuff. WordPress includes the version of jQuery that it does to ensure maximum compatibility.<\/p>\n<p>Use another version of jQuery only when encountering compatibility issues, such a plugin that specifically requires it.<\/p>\n<h3>3. Force Perfect JPG Images<\/h3>\n<p>This is a classic example of why working on a team is beneficial. My good friend Lars told me that WordPress doesn\u2019t use 100% quality for images served on the website, to conserve space and bandwidth. He also showed me a solution, of course:<\/p>\n<p>WordPress uses a default quality of 90%. This is fine in most cases; I doubt many people can see the difference. But if top-notch image quality is a must on your website (for a portfolio, photography, etc.), modifying the value might be best.<\/p>\n<h3>4. FeedBurner Redirection<\/h3>\n<p>FeedBurner is used on almost every blog that I\u2019ve worked on, and yet I never know how exactly to set it up by heart. Thanks to Elio for writing \u201c<a title=\"WordPress Optimization Tips\" href=\"http:\/\/www.smashingmagazine.com\/2011\/12\/07\/10-tips-optimize-wordpress-theme\/\">10 Tips to Optimize Your WordPress Theme<\/a>,\u201d which contains this snippet<\/p>\n<p>5. Using General Taxonomy Functions<\/p>\n<p>A number of taxonomy functions can handle your custom taxonomies as well as the built-in tags and categories. The Codex\u2019s <a title=\"WordPress Taxonomy Functions\" href=\"http:\/\/codex.wordpress.org\/Function_Reference#Category.2C_Tag_and_Taxonomy_Functions\">reference of functions<\/a> contains the full list of taxonomy functions. I particularly like using get_term(), get_terms() andwp_get_object_terms(). To make things more modular, I use these functions as much as I can, even for tags and categories.<\/p>\n<h3>6. Setting Up Sessions In WordPress Themes<\/h3>\n<p>Sessions are great for storing information between pages and are widely used on websites. WordPress doesn\u2019t use them at all internally, so the session is never set. Using the following method, you can start a session on all pages before any output.<\/p>\n<p>Note that, while sessions are generally pretty safe, implement IP checking or added nonce protection just to be on the safe side. As long as you\u2019re transmitting non-sensitive data, though, you\u2019ll fine. Check out Mark Jaquith\u2019s great <a href=\"http:\/\/markjaquith.wordpress.com\/2006\/06\/02\/wordpress-203-nonces\/\">article on nonces<\/a> for more info.<\/p>\n<p>from : http:\/\/www.smashingmagazine.com\/2013\/09\/26\/powerful-wordpress-tips-and-tricks\/<\/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>I\u2019ve been working with WordPress since the dawn of time, and even though I peek at the source code regularly, I still discover new tips and tricks. I\u2019ve compiled my own list of 21 techniques that are handy, clever, fun or best practices rarely followed. I hope everyone finds something new in the list! 1. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":192,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","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,52],"_links":{"self":[{"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/posts\/4459"}],"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=4459"}],"version-history":[{"count":0,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/posts\/4459\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/media\/192"}],"wp:attachment":[{"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}