Tag Archives: Hacks

How To Force Instant RSS Feed Update in WordPress?

Recently a Managed WordPress owner raised a question about how to force an immediate update to RSS feeds in WordPress.

Is there a way to force RSS feed update on my website? My problem is after I have made changes to a blog post? I have noticed that once the content is published, the RSS feed is sent and I can see it in my own RSS reader, but then I cannot update it anyhow, even if I change everything in the post. Frustratingly, the RSS keeps showing the old version, even after I manually update my feed reader.

By default what happens is when you update posts, tags or categories on your website, the content sent via RSS feed remains the same for longer period of time. The reason is default feed update cycle of WordPress is twelve hours.

Continue reading How To Force Instant RSS Feed Update in WordPress?

How To Parent Boys?

Let boys do all the maths, hacks, tracks and sketches other than doing their household cores to grow as free men. Let them find out and let them make whatever they like most.

Indulging deep within the code of dominant technologies is the ultimate free way to free men. Thereafter they won’t have free time.

Sangkrit sees independent jobs for at least one billion free men to program this world. They could be building their net worth by independently changing this world.

How To Pass Default Value For Any Custom Field Across All WordPress Posts?

WordPress provides ability to post authors for assigning custom fields to any post, page or custom post type. This arbitrary additional information is called meta-data which may include bits of information.

Continue reading How To Pass Default Value For Any Custom Field Across All WordPress Posts?

Limit Users Access To Their Respective Website In WordPress

A few hours back, we have discussed about automatically redirecting users to their specific website, as soon they login to your WordPress multisite network.

But once a successful login is made, it won’t get called again with that code and thereafter if any user attempts to get access to other’s website, he will easily get it.

So how to enforce redirection to logged-in user’s respective website? In this lesson you will learn about getting this job done with an easy PHP function.

Continue reading Limit Users Access To Their Respective Website In WordPress

How To Login Redirect WordPress Users To Their Subsite?

You can automatically redirect users to their respective sub-site after login in your WordPress multisite network. This can easily be done either by adding some code in your theme’s function.php file or via Code Snippets plugin.

Continue reading How To Login Redirect WordPress Users To Their Subsite?

Prevent Your Clients From Deactivating Plugins In WordPress

Earlier we have discussed how to prevent your client’s from changing themes on their WordPress sites and keep using the theme you have designed for them.

We have also discussed about disabling plugin and theme installation/update functionality in WordPress and customizing admin area user interface. In this lesson you will learn how to remove deactivate links on plugins list.

Continue reading Prevent Your Clients From Deactivating Plugins In WordPress

Easily Disable Theme Changing In WordPress

Webmasters probably spent lots of time in customizing, creating and adding more specific features to theme for their client’s website and if by mistake your client switches to a new theme, deletes the old one could result in disaster.

So if you are also a website designer using WordPress to create client websites then here is a code snippet to remove “Themes” menu from “Appearances” section in your admin area dashboard.  Continue reading Easily Disable Theme Changing In WordPress

Get Rid Off From Non Essential WordPress RSS Feeds

By default WordPress automatically generates RSS feed for every post type, tag, category and other archive types. This results in unnecessary load on your website.

In this lesson we will show you how you can disable all unnecessary RSS feeds and promote your main RSS.  Continue reading Get Rid Off From Non Essential WordPress RSS Feeds

How To Hide Sidebars On Small Screen Devices In Twenty Fourteen WordPress Theme?

By default, most WordPress themes slides sidebars to bottom on small screen devices like on mobile phones and tablets. But you must have observed various websites automatically remove the sidebars if it’s viewed on a small screen and keep it visible everywhere else.

Continue reading How To Hide Sidebars On Small Screen Devices In Twenty Fourteen WordPress Theme?

How To Show Authors Only Their Post Comments In WordPress Admin Area?

Default WordPress functionality shows all comments (in admin area) to all registered authors in your website. In this tutorial we will show you how you can restrict comment visibility in admin section so that authors can see only comments posted on their articles.

Continue reading How To Show Authors Only Their Post Comments In WordPress Admin Area?

How To Remove Unwanted Activity Streams In BuddyPress?

Today, a SANGKRIT.net hosting owner requested us to help him out in filtering unwanted activity stream stuff in BuddyPress.  He is running a BuddyPress based video sharing and networking website and what he was noticing is his activity steam populated with tons of updates on people joining groups, changing profile photos, posting on forums etc etc (just like old days Facebook).

Continue reading How To Remove Unwanted Activity Streams In BuddyPress?

How To Hide Entire Media Library Menu From WordPress Admin Area Dashboard?

WordPress media library contains all images, videos, recordings and files which you have uploaded and used inside your posts, pages, post types etc. Media is typically uploaded and inserted at the time of creating/editing content and the admin media menu (Dashboard -> Media) lets to access those files in bulk, it also allows you to upload media files through Dashboard -> Media -> Add New page but that is hardly used by bloggers.

Continue reading How To Hide Entire Media Library Menu From WordPress Admin Area Dashboard?

How To Remove Default Dashboard Widgets In WordPress?

WordPress dasboard shows you a lot of information about your website and WordPress news, plugins etc. The information is divided into various dashboard widgets which a user can drag, reorder or hide using screen options button. Many a times people like hiding the dashboard widgets (specially the news and welcome panel) from their websites. In this tutorial we will show you how you can easily disable the dashboard widgets globally for all users on your website.

Continue reading How To Remove Default Dashboard Widgets In WordPress?

How To Remove Unwanted Admin Area Menus in WordPress?

WordPress admin menus arethe links visible on the left side navigation in your admin area dashboard i.e /wp-admin screens. There are various ways of customizing these admin menus and we have discussed about them here. Now what is the need of removing admin menus? It entirely depends on the user, everyday many searches are made on removing unwanted menus from WordPress dashboard.

Continue reading How To Remove Unwanted Admin Area Menus in WordPress?

How To Use High Contrast Login Screen In WordPress?

Today one of our reader emailed us asking how he can use a high contrast color style in his website’s login page. Black Login Screen plugin automatically changes WordPress login screen to black color and makes it more contrast. It provides you a simple WordPress hack which you can manually edit (or use inside your theme’s function.php file) to activate a custom background color on your website’s login page.

Continue reading How To Use High Contrast Login Screen In WordPress?

How To Unset Login Screen Logo In WordPress 3.9+ Versions?

We have posted various tutorials on customizing WordPress login screens (take a look over to related tutorials showing up after this posts). In this tutorial we will show you how you can simply unset the login screen logo without customizing or changing anything out. You can so so either by activating Hide Login Logo plugin or alternatively you may add the following code in your theme’s function.php file and that’s it.

Continue reading How To Unset Login Screen Logo In WordPress 3.9+ Versions?

How To Use Any Shortcode In WordPress Theme Files?

Shortcodes are the special tags like [a-shortcode-ex] which replaces the tag with some other content on the frontend. By default shortcode usage is only limited to WordPress posts, pages and custom post types but there is a very easy function in WordPress called do_shortcode() which enables you to use any shortcode with in your theme files, the PHP template files.

Continue reading How To Use Any Shortcode In WordPress Theme Files?

Display Custom Content After Posts From Some Specific Category In WordPress

Inserting custom content after each post can be done by adding a simple function in your theme’s function.php file or if you don’t like editing in your theme files and avoid feature lost after updates then use the Code Snippets plugin. In this tutorial we will explain you adding custom contnet after each post or after posts from some specific category in WordPress.

Continue reading Display Custom Content After Posts From Some Specific Category In WordPress

How To Set Default Theme For Websites In WordPress Multisite Network?

By default WordPress uses Twenty Fourteen as default theme for subsites in a multisite network. There many users who simply delete Twenty Fourteen theme and then rename the theme they want making default as Twenty Fourteen. This is an easy way but it has some limitations like the next update will wash all your theme files to new updated version of default WordPress theme. So here is a more easy and right way to set up default theme in WordPress multisite networks.

Continue reading How To Set Default Theme For Websites In WordPress Multisite Network?