Code Snippets by Gaurav Tiwari

Code snippets, hacks, plugins, themes and tools to make your websites shine.

Dynamic Month & Year Into Posts

Add dynamic month and year to post content, title and meta using shortcode

Manual Sitemap Submitter

Manually ping and submit your sitemap to google in one click for free.

Free Domain Lookup Tool

Domain Name & IP lookup for verified registration information. 100% accurate

Is My Site Down or Not?

Check if your site is up or down with this simple-to-use tool — ad-free, fast and 100% accurate.

One Click Screenshot

Free One-Click Screenshot generator that simply works. Use it now for free.

Comment Spam Cleaner

Remove links & other spam from comments in WordPress. (Code Snippet)

Marketers Delight

Making Marketers Delight (MD) 100% Accessible. MD is the theme I use.

Cookie Notice

Add minimalistic Cookie Notice. No need for a plugin.

Block Editor

Enhance WordPress Blocks with custom styles.

Shortcode Creator

A simple shortcode creator snippet.

Manually Load CSS

Load CSS delayed on button click.

Dynamic Month and Year Support in all CodeSupply Themes

List of Child Pages

List Child Pages or Subpages of a Page in the page with a shortcode

Don’t Make Comment Hyperlinks automatically clickable.

Add SVG Support

Add SVG file format support to WordPress

WordPress Thumbnails

Add Post Thumbnails in WordPress and to the Block Editor/Gutenberg

Optimize WooCommerce

Load WooCommerce Scripts only When Needed

Revision Limit in WP

Limit the maximum number of post revisions stored on Database

FAQ

How do I use these Code Snippets?

Depending on the code snippet, the usage can differ. Please refer to the individual article/code snippet/plugin for detailed instructions on how to use these.

Do I need to credit you for the code?

No. You can use these codes in your projects, whether personal or commercial. But it would be very kind of you if you could provide credit. That will encourage me to work more and better.

‘This’ code snippet doesn’t work, what to do?

If something doesn’t work, you can report that to me at gaurav@gauravtiwari.org :) I’ll take a maximum of 12 hours to respond to your email.

How to save these code snippets for later?

You can bookmark the pages or save the URLs to getpocket.com — and visit back later. You can also follow me on Twitter to get regular code updates.