Show All Media Attachments to a Post

Show All Media Attachments to a Post

Prior to WordPress 3.6, we had to run a query to retrieve all media attachments to a specific post. We had to do something like this. // show all WordPress post attachments $args = array( ‘post_type’ => ‘attachment’, ‘posts_per_page’ => -1, ‘post_status’ => ‘any’, ‘post_parent’ => $post->ID ); $attachments = get_posts( $args ); if (…

Replace Howdy Admin in WordPress Admin Bar

Replace Howdy Admin in WordPress Admin Bar

Although it’s not really a huge deal but some people might want to replace the default welcome message “Howdy, admin” in the WordPress admin bar. To replace “Howdy, admin” in WordPress admin bar, you can use this code snippet below. Using this snippet now, your welcome message will read “Welcome! admin” instead of default “Howdy,…

Redirect to Custom Page After Registration

Redirect to Custom Page After Registration

On successful registration of a user, WordPress by default shows “Registration Complete. Please check your e-mail.” message. But on a specific project/website you may want your newly registered user to display a custom registration message or you may want to redirect to custom page. In my opinion, it’s a better idea to redirect users to…

Disable Automatic Compression of JPG in Wordpress

Disable Automatic Compression of JPG in Wordpress

WordPress has built in compression for JPG images. Whenever you upload an JPG/JPEG image to WordPress media library, WordPress will automatically compress your images to 90% of the original quality, this is intended to help your pages load faster and keep file sizes smaller. But sometime it’s essential to have high quality images on your…

Useful List of Websites

Useful List of Websites

Useful websites that might come in handy someday Here’s a list of useful websites that you probably didn’t know and might come in handy someday. temp-mail.org ― create temporary disposable email addresses. You can also try 10minutemail.com. 12ft.io ― bypasses paywalls and removes ads from web pages. remove.bg ― remove background from images. You can also try erase.bg. haveibeenpwned.com ― check…