How to make your wordpress secure, wp config tips and many more

You don’t want your site to be hacked, right? Security should be at the top of to-do list. It doesn’t matter which CMS or platform you use for your website or application or portal, but you need to always think about security. Well, you never can stop a hacker to hack your site, but you… Continue reading How to make your wordpress secure, wp config tips and many more

Include GitHub Gists in WordPress content

WordPress.com makes it dead easy to include Gists in posts, but that isn’t available in the WordPress software by default.  So let’s add it! GitHub’s Gist service normally provides an embed code to include Gists in other web sites. The embed code is really just a script to load the Gist via JavaScript. Since WordPress normally strips content… Continue reading Include GitHub Gists in WordPress content

Easily display member cards with WPMU DEV Membership

Here’s a simple shortcode snippet to let you easily add a membership card for your site’s members when using WPMU DEV’s Membership plugin. This was requested in the WPMU DEV forums, where we love to help members out with simple and useful custom snippets. WPMU DEV Forum topic: Display Membership Data Print/Mobile The snippet adds a… Continue reading Easily display member cards with WPMU DEV Membership

How to add multiple custom excerpt length in wordpress

In archive pages, we use the_excerpt() function to show excerpt of each posts. Be default, wordpress uses 55 words as excerpt if you don’t enter anything in Excerpt meta field. Now, if you want to change the length of excerpt, there is a filter available for that. excerpt_length is the filter that you can use… Continue reading How to add multiple custom excerpt length in wordpress

How to redirect user to his primary blog on login in a multisite

Some web admins don’t like to to redirect the user to network site dashboard upon login. So, they want to redirect the user to the primary blog’s dashboard. Well, it’s fair enough. So, if an user 5 subsites, and when he will login, he will be redirected to his primary blog’s dashboard. He will still… Continue reading How to redirect user to his primary blog on login in a multisite