{"id":1474,"date":"2019-08-26T21:19:00","date_gmt":"2019-08-26T13:19:00","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=1474"},"modified":"2022-10-18T20:12:13","modified_gmt":"2022-10-18T12:12:13","slug":"40-most-wanted-wordpress-tricks-and-hacks","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/","title":{"rendered":"60+ Most Wanted WordPress Tricks and Hacks (Updated)"},"content":{"rendered":"<p>Have you ever came across a WordPress blog, saw something you liked, and thought; <em>how they did that<\/em>,<em> is that a plugin or hack? where can I get those cool mods?<\/em> etc. Well, you\u2019re not alone in thinking like that. Most WordPress users are always looking or some new ways to optimize their experience.<\/p>\n<p>Keeping this in mind, we created this article by asking WordPress blog owners what kind of hacks and plugins they frequently look for to enhance their blog in any aspect. And here\u2019s our outcome \u2013 <strong>60+ most wanted WordPress tips, tricks and tweaks<\/strong>, including those you probably don\u2019t even know the keywords to search for. Let\u2019s take a look at the content.<\/p>\n<h2>Useful plugins you should know\u2026<\/h2>\n<h3>Revert Plugins or Themes to Previous Version (Easily)<\/h3>\n<p>As with any other system update, there is a chance that a new plugin or theme update may accidentally screw up your website. WordPress does not allow us to revert to the previous version but you can install this plugin <a href=\"https:\/\/wordpress.org\/plugins\/wp-rollback\/\">WP-Rollback<\/a> to get that functionality. Once it is activated it will add a link \u201cRollback\u201d on any installed plugin.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/wordpress-rollback.jpg\" alt=\"wordpress rollback\" width=\"576\" height=\"437\"><\/figure>\n<h3>Text Editor SyntaxHighlighter<\/h3>\n<p>The WordPress text-mode editor is pretty plain. You can make it more user-friendly by installing <a href=\"https:\/\/wordpress.org\/plugins\/html-editor-syntax-highlighter\/\">HTML Editor SyntaxHighlighter<\/a>, a plugin that adds syntax coloring like in a code editor. It will make editing a lot easier, especially if you use Text-mode editor more often than the Visual (WYSIWYG) counterpart.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/wordpress-syntax-highlight.jpg\" alt=\"wordpress syntax highlight\" width=\"1000\" height=\"325\"><\/figure>\n<h3>Install Plugin with Single Click<\/h3>\n<p>For more plugin management, you could install <a href=\"https:\/\/wordpress.org\/plugins\/wpcore\/\">WP-Core<\/a>. This is a plugin that makes WordPress plugin installations more streamlined. You can also makes a Collection to put several plugins together and install them with one click.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/install-wordpress-one-click.jpg\" alt=\"one click install\" width=\"1000\" height=\"608\"><\/figure>\n<h3>Show Disk Usage Chart<\/h3>\n<p>Install this plugin <a href=\"https:\/\/wordpress.org\/plugins\/disk-usage-sunburst\">Disk Usage Sunburst<\/a> to display a beautiful visualization, similar to <a href=\"https:\/\/daisydiskapp.com\/\">DaisyDisk<\/a>, of your website disk space usage. A quite useful utility to add to your website.<\/p>\n<h3><a href=\"https:\/\/themeshaper.com\/2008\/04\/26\/how-to-add-gravatars-for-the-post-author-in-wordpress\/\">Add Gravatar for post author<\/a> <\/h3>\n<p>Showing an avatar image is one way to get recognized online. With Gravatar be part of the WordPress Core, we can easily show an avatar within your theme from your Gravatar account very easily. This article from ThemeShaper will show you how.<\/p>\n<h3><a href=\"https:\/\/wordpress.org\/support\/article\/creating-a-static-front-page\/\">Using custom page as homepage<\/a> <\/h3>\n<p>WordPress will display a list of posts on the home page. But did you know that you can select a specific page to show static content and use other page to show the list of Posts.<\/p>\n<h3><a href=\"https:\/\/developer.wordpress.org\/themes\/functionality\/featured-images-post-thumbnails\/\">Create and display thumbnails for each blog post<\/a><\/h3>\n<p>This article shows you how to show featured image on your post using the WordPress built-in post thumbnail feature. It\u2019s so easy now to do this. No more hacking around with old ways like <a href=\"https:\/\/www.binarymoon.co.uk\/projects\/timthumb\/\">TimThumb<\/a> or hacknig around with the custom field.<\/p>\n<h3><a href=\"https:\/\/github.com\/stuttter\/wp-term-images\">Create and display category image<\/a><\/h3>\n<p>Even so now you can easily show a catgory image the WordPress way. Simply use this plugin called <a href=\"https:\/\/github.com\/stuttter\/wp-term-images\">WP Term Images<\/a>.<\/p>\n<h3><a href=\"https:\/\/pearsonified.com\/custom-css-wordpress\/\">Protect CSS mods for any WordPress theme<\/a><\/h3>\n<p>Let\u2019s learn how you can add a custom CSS on your theme without having to worry that it\u2019ll be overriden.<\/p>\n<h3><a href=\"https:\/\/wordpress.org\/plugins\/wp-external-links\/\">Open links in new windows by default<\/a><\/h3>\n<p>It might be a good idea to open up all links of external sites in a new window, by default. This will allow your users to navigate both your site and the external site at the same. In other words, users will stay longer on your site.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/open-wordpress-links-external-default.jpg\" alt=\"open links external default\" width=\"711\" height=\"404\"><\/figure>\n<h3><a href=\"https:\/\/wordpress.org\/plugins\/minimum-featured-image-size\/\">WordPress thumbnail size limit<\/a><\/h3>\n<p>If you\u2019re ever frustratted by your author uploading a blurry or too small of a featured image, this is the perfect plugin for you. Use this plugin to set the minimum height and with that they should be uploading.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/min-thumb-size.jpg\" alt=\"min thumb size\" width=\"800\" height=\"290\"><\/figure>\n<h3><a href=\"https:\/\/www.hongkiat.com\/blog\/how-to-seperate-comments-and-trackbacks-wordpress-tips\/\">Seperate comments from Trackbacks\/Pingbacks<\/a><\/h3>\n<p>WordPress shows both comments and trackbacks and pingbacks in the order of when they are posted. Let\u2019s tidy them up by separating them in a different section.<\/p>\n<h3><a href=\"https:\/\/codex.wordpress.org\/Creating_an_Archive_Index#Creating_the_Archive_Index_Template_and_Page\">Creating an Archive Index<\/a><\/h3>\n<p>Learn how to create a special page in WordPress showing links to all your previous posts arranged in yearly or monthly order.<\/p>\n<h3><a href=\"https:\/\/wordpress.org\/plugins\/login-designer\/\">Custom login page<\/a> <\/h3>\n<p>Creating a beautiful WordPress login page gets so much easier with this plugin. You can pick color, background, and it\u2019s position. It just works and no need to code.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/custom-login-page.jpg\" alt=\"custom login page\" width=\"1000\" height=\"448\"><\/figure>\n<h3><a href=\"https:\/\/wordpress.stackexchange.com\/questions\/246055\/count-total-number-of-images-in-post-and-echo-results-as-number\">Post text and image count<\/a><\/h3>\n<p>A clever way to count images in your post but leaving the default WordPress smilies out (which is also technically an image), and display the number.<\/p>\n<h3><a href=\"https:\/\/yoast.com\/wordpress\/plugins\/seo\/\">Place content only in RSS Feed<\/a><\/h3>\n<p>Place additional content in the RSS feed, but not in the content in the website itself. You could use it to place, for example, a copyright notice on your content.<\/p>\n<h3><a href=\"https:\/\/wordpress.org\/plugins\/tabby-responsive-tabs\/\">Adding Tabs to Content<\/a><\/h3>\n<p>Organize your content with Tabs using this plugin. Using Tab is perfect way to show more content in very little or limited space.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/wordpress-tab-content.jpg\" alt=\"tab content in wordpress\" width=\"800\" height=\"354\"><\/figure>\n<h3><a href=\"https:\/\/www.vandelaydesign.com\/\">Sidebar With Dynamic Contents<\/a><\/h3>\n<p>Sidebar often is boring as they look the same in every pages. Let\u2019s learn how to show different content in the sidebar.<\/p>\n<h3><a href=\"https:\/\/wordpress.org\/plugins\/syntaxhighlighter\/\">Google Syntax Highlighter for WordPress<\/a><\/h3>\n<p>With this plugin, you can add proper syntax colors to the code block in the content, and let your users to copy the code easily.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/syntax-highlight-wordpress.jpg\" alt=\"syntax highlight wordpress\" width=\"1000\" height=\"528\"><\/figure>\n<h3><a href=\"https:\/\/wordpress.org\/plugins\/breadcrumb-navxt\/\">Add Breadcrumbs to Your WordPress Blog<\/a><\/h3>\n<p>Breadcrumb navigation is good for both SEO and your users. Use this plugin to add one on your site.<\/p>\n<h3><a href=\"https:\/\/wordpress.org\/plugins\/easy-paypal-donation\/\">Buy Me a Beer<\/a><\/h3>\n<p>Add a Paypal button to your site to let your users send a donation. The plugin makes it very easy to add the button any where in your site and change the styles of the button to match your liking.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/wordpress-donate-button.jpg\" alt=\"wordpress donate button\" width=\"800\" height=\"294\"><\/figure>\n<h3><a href=\"https:\/\/wordpress.org\/plugins\/adunblocker\/\"> Detect Adblocker and display alternative<\/a><\/h3>\n<p>Display a notice for usrs with AdBlocker. A handy plugin to optimize your ad-based revenue on your site.<\/p>\n<h3><a href=\"https:\/\/wordpress.org\/\/extend\/plugins\/wp-relativedate\/\">Alternative way to display dates<\/a><\/h3>\n<p>Format the timestamp on Posts or Comments that\u2019s easy to read and understand. For example, we can show Yesterday or 2 Days Ago instead of 17th August 2019.<\/p>\n<h3><a href=\"https:\/\/wordpress.org\/\/extend\/plugins\/broken-link-checker\/\">Check for Broken Links<\/a><\/h3>\n<p>Broken can be irritating. Use this plugin to check broken links on every Posts on your site.<\/p>\n<h3><a href=\"https:\/\/wordpress.org\/plugins\/related-posts-thumbnails\/\">Display Thumbnails for Related Post<\/a><\/h3>\n<p>Ever wonder how to add related posts right after the main content? In WordPress, adding related posts along with the image thumbnail is easy with this plugin.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/related-post-thumbs.jpg\" alt=\"related post thumbs\" width=\"720\" height=\"429\"><\/figure>\n<h3><a href=\"https:\/\/jeroensormani.com\/how-to-include-your-wordpress-org-plugin-download-count\/\">WordPress Plugin Download Counter<\/a><\/h3>\n<p>Do you have plugin plublished in WordPress.org repository? Here\u2019s the script if you\u2019d like to show the number of downloads the your plugin has got.<\/p>\n<h2>Here\u2019s more\u2026<\/h2>\n<h3>Disabling Full-Height Editor<\/h3>\n<p>WordPress 4.0 added a subtle UX change in the editor. If you are scrolling or writing a length paragraph, the height of the editor will match the height of your screen, eliminating the scroll-bars inside the editor.<\/p>\n<p>To reach some panels like the <strong>Excerpt<\/strong> and <strong>Custom Fields<\/strong> that reside below the editor, you need to scroll all the way down through the end of paragraph. If you don\u2019t want this, tick the option off in the <strong>Screen Options<\/strong> panel.<\/p>\n<p><strong>Note:<\/strong> If you\u2019re enabling the block editor a.k.a the Gutenberg, this tip is no longer applicable because WordPress has changed the entire editor interface.<\/p>\n<h3>Adding Icon in Menu<\/h3>\n<p>Follow this tip to <a href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-menu-icon\/\">add icon beside your website menu items<\/a> giving your menu navigation more visual appeal.<\/p>\n<h3>Install WordPress Plugin via Github<\/h3>\n<p>Did you find a WordPress plugin in Github that you want to install in your website? Follow this tip on <a href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-plugins-in-github\/\">how to install plugins conveniently<\/a> with just a few clicks. Be careful though of what you install as <a href=\"https:\/\/www.hongkiat.com\/blog\/not-install-wordpress-plugins\/\">plugins are not moderated<\/a>. There may be a chance that malicious codes may allow infiltration of your website.<\/p>\n<h2>And finally\u2026<\/h2>\n<p>Beyond this point are advanced tips and tricks for those who feel like exploring, and those who enjoy getting their hands dirty with codes. However, many of the following tips may render your website unusable, hence they should be carried out with more attention and with extra caution.<\/p>\n<h3> WordPress Output Debug File<\/h3>\n<p>This snippet will tell WordPress to save the debug log error in a <code>.log<\/code> file instead of displaying it in the front-end. A handy snippet to enable WordPress debugging in a live site.<\/p>\n<pre>\r\ndefine('WP_DEBUG', true);\r\ndefine('WP_DEBUG_LOG', true);\r\ndefine('WP_DEBUG_DISPLAY', false);<\/pre>\n<h3>Using Jetpack Modules \u2013 Offline<\/h3>\n<p>Run and enable all <a href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-jetpack-offline\/\">Jetpack modules offline<\/a> including the modules that actually requires you to connect to WordPress.com to work; a useful tip if you are developing and integrating Jetpack modules to your theme.<\/p>\n<h3>Disable self-ping \/ self-trackback<\/h3>\n<p>This trick <a href=\"http:\/\/wordpress.stackexchange.com\/a\/1852\">prevents WordPress from self-ping<\/a>, which happens if you cross-link pages or posts of your own website.<\/p>\n<pre>\r\nfunction no_self_ping( &$links ) {\r\n  $home = get_option( 'home' );\r\n  foreach ( $links as $l =&gt; $link )\r\n    if ( 0 === strpos( $link, $home ) )\r\n      unset($links[$l]);\r\n}\r\nadd_action( 'pre_ping', 'no_self_ping' );<\/pre>\n<p>Another way you can use is by installing <a href=\"https:\/\/wordpress.org\/plugins\/disabler\/\">Disabler<\/a> plugin. It is a plugin that allows you to turn on or off certain WordPress functionality including disabling self-ping.<\/p>\n<h3>Pre-Populate Content<\/h3>\n<p>This tip is quite useful if you want to <a href=\"https:\/\/wordpress.org\/plugins\/easy-populate-posts\/\">add default content<\/a> each time you create a new post, page, or custom post type content; the idea is similar to adding a standard signature when creating new emails.<\/p>\n<h3>Custom Class for Post<\/h3>\n<p>The following tip explores some customization of <a href=\"https:\/\/themeshaper.com\/2014\/11\/20\/mastering-the-post_class-function\/\">WordPress Post Class<\/a> thoroughly with <code>post_class<\/code>. It\u2019s helpful if you want to be more specific with regards to your post styles.<\/p>\n<h3>Loading Alternative Template<\/h3>\n<p>WordPress uses <code>single.php<\/code> to show post content. If you want to change it to, perhaps, <code>post.php<\/code>, this tip will show you how to <a href=\"https:\/\/markjaquith.wordpress.com\/2014\/02\/19\/template_redirect-is-not-for-loading-templates\/\">override default WordPress templates<\/a> correctly.<\/p>\n<h3>WordPress Theme Customizer from Scratch<\/h3>\n<p><a href=\"https:\/\/wpvip.com\/\/2012\/05\/10\/wordpress-3-4-preview-theme-customizer\/\">WordPress 3.4 adds a new API called Customizer<\/a> which allows you to build controls to customize theme and see the result in real-time. The Customizer API may be overwhleming for some, though, as it involves multi-disciplinary code sets including PHP, JavaScript, Ajax, and jQuery.<\/p>\n<p>Nonetheless, Theme Foundation has compiled a complete guide to <a href=\"https:\/\/themefoundation.com\/wordpress-theme-customizer\/\">WordPress Customizer<\/a>. You will learn how to add the Customize menu, build Sections, Settings, Input Controls as well as Panels, and learn their functions all together \u2013 in and out. An essential reference for WordPress theme developers.<\/p>\n<h3>Using Vagrant with WordPress<\/h3>\n<p>Vagrant is a great tool to create a virtual environment, and to run a test of your WordPress development to ensure that themes and plugins would work in varying instances. In this following tip, Daniel Pataki, will walk you through how to <a href=\"https:\/\/www.hongkiat.com\/blog\/install-wordpress-locally-vagrant\/\">get your WordPress site up and running with Vagrant<\/a>.<\/p>\n<h3>Retrieving WordPress Gravatar URL<\/h3>\n<p>The WordPress <code>get_avatar()<\/code> is a handy function to get a user\u2019s avatar; the function retrieves the image along with the <code>img<\/code> element. But sometimes I want to grab just the image URL so that I could freely and easily add custom classes or ids to the image.<\/p>\n<p>If you have this in mind, add the following code in your <code>functions.php<\/code>:<\/p>\n<pre>\r\nfunction get_avatar_img_url() {\r\n  $user_email = get_the_author_meta( 'user_email' );\r\n  $url = 'http:\/\/gravatar.com\/avatar\/' . md5( $user_email );\r\n  $url = add_query_arg( array(\r\n    's' =&gt; 80,\r\n    'd' =&gt; 'mm',\r\n  ), $url );\r\n\r\n  return esc_url_raw( $url );\r\n}<\/pre>\n<p>Then somewhere in another file \u2013 perhaps <code>single.php<\/code> or <code>page.php<\/code> \u2013 use the following code to show the image.<\/p>\n<pre>\r\n$avatar_url = get_avatar_img_url();\r\necho '&lt;img src=\" ' . $avatar_url . ' \"&gt;';\r\n<\/pre>\n<p>Here\u2019s a more <a href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-gravatar-image-url\/\">detailed post<\/a> to break it down for you.<\/p>\n<h3>Remove Classes From Menu<\/h3>\n<p>WordPress, by default, adds a bunch of classes. While this is good to allow extensive customization, the menu HTML markup looks really cluttered. Tidy it up and add only the class you need with the snippet below.<\/p>\n<h3>Applying SSL In WordPress Multisite<\/h3>\n<p>SSL, not only secures your website, but also bumps up the rankings in Google search result. In the following tip, Jenni McKinnon covers how to deploy SSL in <a href=\"https:\/\/premium.wpmudev.org\/blog\/ssl-domain-mapping\/\">WordPress multisites<\/a> that may employ multiple sub-domains.<\/p>\n<h3>Customizing WordPress Content Editor<\/h3>\n<p>Adding styles to the editor will improve the writing experience in WordPress editor. You can match the typographic styles of the backend with the front-end allowing you to see the final version (or a version as close to the final as possible) while writing. This will reduce the switching of back and forth between the editor and the content output.<\/p>\n<pre>\r\nfunction my_editor_styles() {\r\n  add_editor_style( 'editor-style.css' );\r\n}\r\nadd_action( 'admin_init', 'my_editor_styles' );\r\n<\/pre>\n<h3>Creating Plugin Welcome Screen<\/h3>\n<p>If you have just updated WordPress you will be redirected to a special screen, showing the details of the latest version you have just installed, the contributors, the additions as well as all the changes made under the hood. This tip, <a href=\"https:\/\/wpmudev.com\/blog\/plugin-welcome-screen\/\">Creating a Welcome Screen For Your WordPress Plugin<\/a> by Daniel Pataki will guide you through how to build a welcome screen for your own plugin.<\/p>\n<h3>Customize Jetpack Mobile Theme<\/h3>\n<p>Jetpack comes with a Mobile Theme. It is a special theme that is used when the website is viewed on mobile devices. And like any other theme, we can customize it. Here\u2019s a how-to by Jeremy, one of Jetpack developers, on how to <a href=\"https:\/\/jetpack.com\/2013\/06\/27\/customize-mobile-theme\/\">customize the Jetpack Mobile Theme<\/a>. It\u2019s a good alternative to consider in place of responsive web design.<\/p>\n<h3>Adding Featured Image To Category<\/h3>\n<p>Want to add a <a href=\"https:\/\/wpmudev.com\/blog\/how-to-add-feature-images-to-your-wordpress-categories\/\">featured image for a Category<\/a> and display it in your theme? This feature is missing from WordPress, which could actually be useful for theme developers.<\/p>\n<h3>Display Hidden \u201cAll Settings\u201d<\/h3>\n<p>A WordPress easter egg, this code snippet will add <a href=\"https:\/\/wordpress.stackexchange.com\/questions\/1567\/best-collection-of-code-for-your-functions-php-file\/1614#1614\">all settings<\/a> in the WordPress database into one page.<\/p>\n<h3>Remove Update Notification<\/h3>\n<p>WordPress, by default, display update notifications to all user levels when they are logged in to the backend. Add the following codes to <a href=\"http:\/\/wordpress.stackexchange.com\/a\/1585\">hide WordPress update notification<\/a> except for users with Administrative privilege.<\/p>\n<h3>Add Thumbnail In Post\/Page Edit List<\/h3>\n<p>This code will display featured images you have assigned to post in the Post column. A useful trick to see which post has a thumbnail and which does not. Note that your theme should support post thumbnails.<\/p>\n<h3>Sharpening Images<\/h3>\n<p>Honestly, I did not know that we could <a href=\"http:\/\/wordpress.stackexchange.com\/a\/35526\">sharpen images in WordPress as we are uploading the image<\/a>. Here\u2019s how you can, but bear in mind that it only works for JPG images.<\/p>\n<h3>Remove Superfluous info In The Head<\/h3>\n<p>WordPress adds a bunch of things in the <code>&lt;head&gt;<\/code> such as WordPress version, RSD Link, and Shortlink, info that\u2019s not all that useful. To remove these bits of info, use this:<\/p>\n<pre>\r\nfunction remove_header_info() {\r\n  remove_action( 'wp_head', 'rsd_link' );\r\n  remove_action( 'wp_head', 'wlwmanifest_link' );\r\n  remove_action( 'wp_head', 'wp_generator' );\r\n  remove_action( 'wp_head', 'start_post_rel_link' );\r\n  remove_action( 'wp_head', 'index_rel_link' );\r\n  remove_action( 'wp_head', 'adjacent_posts_rel_link' );     \/\/ for WordPress &lt; 3.0\r\n  remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' ); \/\/ for WordPress &gt;= 3.0\r\n}\r\nadd_action( 'init', 'remove_header_info' );<\/pre>\n<p>Remove either one of <code>remove_action<\/code> from the above snippet of which you want to retain.<\/p>\n<h3>Smart WP_Debug<\/h3>\n<p>Ideally you should not enable the WP_Debug in a live site as it will expose critical information. But if you need a trick to do so safely, here it is:<\/p>\n<pre>\r\nif ( isset($_GET['debug']) && $_GET['debug'] == '1' ) {\r\n  \/\/ enable the reporting of notices during development - E_ALL\r\n  define('WP_DEBUG', true);\r\n} elseif ( isset($_GET['debug']) && $_GET['debug'] == '2' ) {\r\n  \/\/ must be true for WP_DEBUG_DISPLAY to work\r\n  define('WP_DEBUG', true);\r\n  \/\/ force the display of errors\r\n  define('WP_DEBUG_DISPLAY', true);\r\n} elseif ( isset($_GET['debug']) && $_GET['debug'] == '3' ) {\r\n  \/\/ must be true for WP_DEBUG_LOG to work\r\n  define('WP_DEBUG', true);\r\n  \/\/ log errors to debug.log in the wp-content directory\r\n  define('WP_DEBUG_LOG', true);\r\n}<\/pre>\n<p>With the above code added, you can enable debugging by adding <code>?debug=2<\/code>, <code>?debug=1<\/code>, <code>?debug=3<\/code> at the end of the URL to see the error that occurs in your website.<\/p>\n<h3>Enable Shortcode In Widget<\/h3>\n<p>The following is a useful piece of code if you want to embed Youtube or SoundCloud in the widget area with a shortcode.<\/p>\n<h3>Set Default Editor (Visual\/Text)<\/h3>\n<p>Set the default type of editor your users can use. Change the <code>$editor<\/code> either to <code>html<\/code> or <code>tinymce<\/code>. Of course, user would still be able to opt out of the default.<\/p>\n<h3>Prolong Auto-logout<\/h3>\n<p>WordPress allows one to remain logged in for 48 hours, plus an extension of 14 days if we check the \u201cRemember Me\u201d option at login. If however you are sure your computer will not be breached by a second or third party, you can add this code to keep yourself logged in for up to a year. You will only be prompted for a login once a year.<\/p>\n<h3>Always Use Figure<\/h3>\n<p>WordPress will wrap <code>img<\/code> with a <code>p<\/code> tag. If you are an HTML semantic purist, you can add this code to force WordPress to <a href=\"http:\/\/wordpress.stackexchange.com\/questions\/174582\/always-use-figure-for-post-images\">wrap image with the <code>figure<\/code><\/a> element.<\/p>\n<h3>Change Default Role Name<\/h3>\n<p>\u201cAdministrator\u201d, \u201cAuthor\u201d, and \u201cSubscriber\u201d are the names given for WordPress users at the administrative level. To <a href=\"https:\/\/wpmudev.com\/blog\/change-wordpress-role-names\/\">change these default names<\/a> to something that sounds more apt for your website, add the following code, then make the change to the names to what you prefer:<\/p>\n<h3>Default Attachment Settings<\/h3>\n<p>Here\u2019s a snippet that lets you specify the default size, alignment, and the link for images you want to embed in the editor.<\/p>\n<h3>Custom Image Size In Media Uploader<\/h3>\n<p><code>add_image_size<\/code> is the WordPress function that allows us to crop and display custom image size. If you want to allow users to add image within this custom size, add the following codes to <a href=\"https:\/\/pippinsplugins.com\/add-custom-image-sizes-to-media-uploader\/\" rel=\"nofollow\">show the \u201ccustom image size\u201d option<\/a> in the WordPress media uploader.<\/p>\n<h3>Load Script Only If A Particular Shortcode Is Present<\/h3>\n<p>In a previous post we have shown you <a href=\"https:\/\/www.hongkiat.com\/blog\/create-wordpress-shortcodes\/\">how to create a custom shortcode<\/a>. If your shortcode requires a JavaScript function, follow <a href=\"https:\/\/scribu.net\/wordpress\/optimal-script-loading.html\">The Jedi Master way<\/a> by Silviu-Cristian Burc\u0103 (famously known as Scribu) to ensure that you only load the JavaScript when the shortcode is applied.<\/p>\n<h3>Menu Description<\/h3>\n<p>When you add in a menu through <strong>Appearance &gt; Menu<\/strong>, you will see an input to add \u201cDescription\u201d. But you won\u2019t find it anywhere in the front-end as we have to customize the WordPress default menu template to include the description.<\/p>\n<p>Here is an elegant way to do so.<\/p>\n<h3>Using Dashicons<\/h3>\n<p>You can now use WordPress\u2019s very own crafted font icon, Dashicons, to add icons to the wp-admin menu. Check out our tutorial on how to start <a href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/\">using Dashicons<\/a>.<\/p>\n<h3>Customize \u201cHowdy\u201d Message<\/h3>\n<p>Follow <a href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-howdy-customized\/\">our previous tutorial<\/a> to change the WordPress nonsensical \u201chowdy\u201d message that appears at the admin bar to something more personalized.<\/p>\n<h3>Exclude Post From The Jetpack Popular Widget<\/h3>\n<p>Jetpack comes with a widget that allows you to show the most viewed or popular posts and pages. But sometimes your most popular pages could be the home page or a page that you do not want to include in the most viewed pile.<\/p>\n<p>Add the following code to remove that page or post:<\/p>\n<pre>\r\nfunction jeherve_remove_post_top_posts( $posts, $post_ids, $count ) {\r\n  foreach ( $posts as $k =&gt; $post ) {\r\n    if ( '1215' == $post['post_id'] ) {\r\n      unset( $posts[$k] );\r\n    }\r\n  }\r\n  return $posts;\r\n}\r\nadd_filter( 'jetpack_widget_get_top_posts', 'jeherve_remove_post_top_posts', 10, 3 );<\/pre>\n<p>Replace the ID shown in the snippet with the ID of the post or page you want to remove.<\/p>\n<h3>Truncate Post Title<\/h3>\n<p>The following snippet controls the maximum title length. Add the following snippet in <code>functions.php<\/code>. Then use the function <code>customTitle()<\/code> in the template to output the title in place of the WordPress <code>the_title()<\/code> method.<\/p>\n<pre>\r\nfunction customTitle($limit) {\r\n  $title = get_the_title($post-&gt;ID);\r\n  if(strlen($title) &gt; $limit) {\r\n   $title = substr($title, 0, $limit) . '...';\r\n  }\r\n  echo $title;\r\n}\r\n<\/pre>\n<p>If you build a <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/go\/elegant\">WordPress Theme<\/a> with a tiled layout where the tile height has to be equal, you might want to specify the limit of the title length. This snippet should come in handy in that case.<\/p>\n<h3>Remove WordPress Logo<\/h3>\n<p>WordPress 3.1 adds an admin bar, which includes a handful of links and the WordPress logo. If you are going to handout websites to a client and you want it to be brandless, here is the function to remove that WordPress logo.<\/p>\n<h3>QR Code with Link to Article<\/h3>\n<p>Improve your website accessibility for mobile devices with QR codes. This code allows you to display QR codes with a link pointing to the article. Mobile users with a QR code scanner can obtain the article link for quick viewing on their mobile devices.<\/p>\n<pre>\r\n&lt;img src=\"http:\/\/api.qrserver.com\/v1\/create-qr-code\/?size=500x500&data=\"\r\n&lt;?php the_permalink() ?&gt;\r\n\" alt=\"QR Code for \r\n&lt;?php the_title_attribute(); ?&gt;\r\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>Have you ever came across a WordPress blog, saw something you liked, and thought; how they did that, is that a plugin or hack? where can I get those cool mods? etc. Well, you\u2019re not alone in thinking like that. Most WordPress users are always looking or some new ways to optimize their experience. Keeping&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[4663,252],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>60+ Most Wanted WordPress Tricks and Hacks (Updated) - Hongkiat<\/title>\n<meta name=\"description\" content=\"Have you ever came across a WordPress blog, saw something you liked, and thought; how they did that, is that a plugin or hack? where can I get those cool\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"60+ Most Wanted WordPress Tricks and Hacks (Updated)\" \/>\n<meta property=\"og:description\" content=\"Have you ever came across a WordPress blog, saw something you liked, and thought; how they did that, is that a plugin or hack? where can I get those cool\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-26T13:19:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-18T12:12:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/wordpress-rollback.jpg\" \/>\n<meta name=\"author\" content=\"Hongkiat Lim\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hongkiat Lim\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/\"},\"author\":{\"name\":\"Hongkiat Lim\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3613a3bf757e4f67770f0b7a339edd0\"},\"headline\":\"60+ Most Wanted WordPress Tricks and Hacks (Updated)\",\"datePublished\":\"2019-08-26T13:19:00+00:00\",\"dateModified\":\"2022-10-18T12:12:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/\"},\"wordCount\":3028,\"commentCount\":444,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-tricks-hacks\\\/wordpress-rollback.jpg\",\"keywords\":[\"ad-divi\",\"WordPress Tips\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/\",\"name\":\"60+ Most Wanted WordPress Tricks and Hacks (Updated) - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-tricks-hacks\\\/wordpress-rollback.jpg\",\"datePublished\":\"2019-08-26T13:19:00+00:00\",\"dateModified\":\"2022-10-18T12:12:13+00:00\",\"description\":\"Have you ever came across a WordPress blog, saw something you liked, and thought; how they did that, is that a plugin or hack? where can I get those cool\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-tricks-hacks\\\/wordpress-rollback.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-tricks-hacks\\\/wordpress-rollback.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/40-most-wanted-wordpress-tricks-and-hacks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"60+ Most Wanted WordPress Tricks and Hacks (Updated)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3613a3bf757e4f67770f0b7a339edd0\",\"name\":\"Hongkiat Lim\",\"description\":\"Founder and Editor in Chief of Hongkiat.com. Hongkiat is also a designer, developer, entrepreneur, and an active investor in the US stock market.\",\"sameAs\":[\"http:\\\/\\\/www.hongkiat.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/hongkiat\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"60+ Most Wanted WordPress Tricks and Hacks (Updated) - Hongkiat","description":"Have you ever came across a WordPress blog, saw something you liked, and thought; how they did that, is that a plugin or hack? where can I get those cool","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/","og_locale":"en_US","og_type":"article","og_title":"60+ Most Wanted WordPress Tricks and Hacks (Updated)","og_description":"Have you ever came across a WordPress blog, saw something you liked, and thought; how they did that, is that a plugin or hack? where can I get those cool","og_url":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2019-08-26T13:19:00+00:00","article_modified_time":"2022-10-18T12:12:13+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/wordpress-rollback.jpg","type":"","width":"","height":""}],"author":"Hongkiat Lim","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Hongkiat Lim","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/"},"author":{"name":"Hongkiat Lim","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e3613a3bf757e4f67770f0b7a339edd0"},"headline":"60+ Most Wanted WordPress Tricks and Hacks (Updated)","datePublished":"2019-08-26T13:19:00+00:00","dateModified":"2022-10-18T12:12:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/"},"wordCount":3028,"commentCount":444,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/wordpress-rollback.jpg","keywords":["ad-divi","WordPress Tips"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/","url":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/","name":"60+ Most Wanted WordPress Tricks and Hacks (Updated) - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/wordpress-rollback.jpg","datePublished":"2019-08-26T13:19:00+00:00","dateModified":"2022-10-18T12:12:13+00:00","description":"Have you ever came across a WordPress blog, saw something you liked, and thought; how they did that, is that a plugin or hack? where can I get those cool","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/wordpress-rollback.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-tricks-hacks\/wordpress-rollback.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"60+ Most Wanted WordPress Tricks and Hacks (Updated)"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e3613a3bf757e4f67770f0b7a339edd0","name":"Hongkiat Lim","description":"Founder and Editor in Chief of Hongkiat.com. Hongkiat is also a designer, developer, entrepreneur, and an active investor in the US stock market.","sameAs":["http:\/\/www.hongkiat.com\/blog"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/hongkiat\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-nM","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/1474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=1474"}],"version-history":[{"count":4,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/1474\/revisions"}],"predecessor-version":[{"id":59035,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/1474\/revisions\/59035"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=1474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=1474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=1474"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=1474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}