JustWP

WordPress Themes, Plugins, Tutorials, Tips And More…

Tag: Code Page 1 of 3

What Are The Reasons To Learn C #?

The C # offers various basic and advanced C # concepts. C # language is both for beginners and professionals. C # is a .Net Framework programming language.

The C # consist all C # themes, control instructions, Read More

Snippets Collection 5

WordPress

Author Bio Excerpt

The snippet below will let you have the author bio excerpt.

Disable Self Trackbacks

The following snippet will let you disable self trackbacks.

Remove Login Shake

The following snippet has to be added to functions.php and it will remove the “wrong password” screen shake.

Only Show Admin Bar To Administrators

The following snippet will let you show the admin bar to administrators.

QR Code With Article Link

To have the QR-code rendered for every article, just insert the following snippet inside the WordPress loop.

Snippets Collection 4

WordPress

Disable Plugin Updates

The snippet below will allow you to disable plugin updates.

List all categories with posts

The snippet below will let you list all categories with posts.

Override WordPress and Site URL

The following snippet will let you override WordPress and site URL.

Get the first link in post

The following snippet will let you get the first link in post.

Check if sidebar has widgets

The snippets checks that if a sidebar of your website having any widget areas in it or not.

Snippets Collection 3

WordPress

Redirect your Author archive link to your “About” page

The following snippet will let you redirect your author archive link to your website’s about us page.

Change Image Path Only

The following snippet will let you change image path only.

Add Thumbnails in Manage Posts/Pages List

The following snippet will let you add thumbnails in manage posts/pages list.

Checks if the visitor is from mobile device

The following snippet will let you checks if the visitor is from mobile device or not.

Add titles to previous_post_link

Read More

Snippets Collection 2

wordpress-logo

Temporary Maintenance

The following snippet will let you temporarily close down your site for visits while your website can still be accessed by admins resulting in letting you do the changes that you are planning for

Add featured images to WordPress feeds

The snippet below will let you add featured images to WordPress feeds.

Set Minimal Comment Limit In WordPress

The following snippet will let you set minimal comment limit in WordPress.

Allow PHP in WordPress Text Widgets

The following snippet will allow PHP in WordPress text widget.

Snippets Collection 1

WordPress

Remove URL from Comment Form

The following snippet will let you remove URL from comment form.

Display a Random Post

The snippet below will let you display some random post.

Customize the Default Avatar

The following snippet will let you customize the default avatar.

Create a Custom Post Template

The snippet below will let you create a custom post template.

Limit Number of Post Revisions

The snippet below will let you limit number of post revisions.

Snippets Collection 5

WordPress

How To Set A Maximum Word Count On Post Titles

Adding the following snippet to your theme’s functions.php file, you will be able to set a maximum word count on post titles.

Snippet Source/Credit: Pippin

Displaying WordPress Excerpt Dynamic Length

The following snippet display the WordPress excerpt dynamic length.

Snippet Source/Credit: Snipplr

Delete Width And Height Attributes From Image Tag

The following snippet will let you delete both width and height attributes from image tag.

Snippet Source/Credit: Stackexchange

How To Set Basic Tag

Read More

Snippets Collection 4

WordPress Settings

How To Show Admin Bar Only For Admins

Using the following snippet in your theme’s functions.php file, you will be able to show admin only for admins. Just copy and paste it and you are done.

Snippet Source/Credit: Jeff Starr

How To Customize Comment Count Text In WordPress

Using the following snippet, you will be able to customize comment count text in WordPress.

Snippet Source/Credit: WPSnipp

How To Deregister All In One Event Calendar In WordPress

The following snippet will let you deregister all in one event calendar in WordPress.

Snippet Source/Credit: Ditscheri.com

How To Print

Read More

Snippets Collection 3

WordPress CMS

How To Disable WordPress Comments Completely

The following snippet will let you disable WordPress comments completely.

Snippet Source/Credit: aotearoawebdesign.co.nz

How To Automatically Delete Trash On Daily Basis

When you delete a post or a page or a comment, it goes in a Trash instead of being removed permanently. Using the following snippet will ease you job of deletion and will tell WordPress to automatically delete the trash itself. Simply copy and paste the following lines of code in your wp-config,php file and you are done.

Note: Make sure that you do replace 1 by X to empty spam comments automatically every X days.

How To Show Content For Logged In Users

Adding this snippet to your theme’s functions.php file will let you show content only for logged in users.

Snippet Source/Credit: Snipplr

How To Redirect

Read More

Snippets Collection 2

WordPress

How To Add A Logo To A Template

Using the following snippet, you will be able to add a logo to a template.

Snippet Source/Credit: WPSnipp

How to count retweets in full text

Adding the following snippet in your theme’s functions.php file, you will be able to count retweets in full text.

Once saved copy and paste the following lines of snippets in your theme’s single.php file:

Snippet Source/Credit: WPRecipes

How To Automatically Link Twitter Usernames In WordPress Posts

Using the following snippet, you will be able to automatically link Twitter usernames in WordPress posts.

Snippet Source/Credit: Paulund.co.uk

How To Block Admin For All

Read More

Page 1 of 3

Powered by WordPress & Theme by Anders Norén