WordPress Themes, Plugins, Tutorials, Tips And More...

Tag: Snippets Page 3 of 7

Snippets Collection Part – 4

Programming-7

How To Limit Posts Per Page On Search

Using the following snippet, you will be able to limit posts per page on search.

Snippet Source/Credit: WordPress.org

How To Display The Number Of Results In WordPress Search

Using the following snippet, you will be able to display the number of results in WordPress search.

Now, simply replace it with to:

Snippet Source/Credit: ProBlogDesign

How To Log-in A WordPress User Programmatically

Using the following snippet, you will be able to log-in a WordPress user programmatically.

Once done, now to log-in a user, just simply do the following:

Snippet Source/Credit: emoticode

How To Create A Pinterest ‘Pin It’ Button For Your Blog

Using the following snippet, you will be able to create a Pinterest “Pin It” button for your blog.

Once done, open your footer.php file and add the Pinterest JavaScript code:

Snippet source/Credit: MarketingTechBlog

Snippets Collection Part – 3

Programming-3

How To Change WordPress Login Logo Title Attribute

Using the following snippet, you will be able to change WordPress login logo title attribute.

Snippet Source/Credit: Dave Clements

How To Load All Posts From The Current Week

Using the following snippet, you will be able to load all posts from the current week.

Source Snippet/Code: Christian Brückner

How To Add A Custom Message To The Editor Pane

Using the following snippet, you will be able to add a custom message to the editor pane.

Snippet Source/Credit: WP Tuts

How To Remove Widgets From WordPress Dashboard

Using the following snippet, you will be able to remove widgets from WordPress dashboard.

Snippet Source/Credit: WP Guru

How To Delete WordPress Post Revisions Using Your Functions.php File

Using the following snippet, you will be able to delete WordPress post revision using your functions.php file.

Snippet Source/Credit: Hardeep Asrani

How To Add A Link To Your Post Using RSS Feed

Using the following snippet, you will be able to add a link to your post using RSS feed.

Snippet Source/Credit: Yoast

Snippets Collection Part – 2

Programming-2

How To Add A Google+ Button To Your Posts

Using the following snippet, you will be able to add a Google+ button to your posts.

Snippet Source/Credit: SpyResStudios

How To Add Gravatars For The Post Author

Using the following snippet, you will be able to add Gravatars for the post author.

Snippet Source/Credit: emoticode

How To Change Author URL Base

Using the following snippet, you will be able to change author URL base.

Snippet Source/Credit: Kevin Chard

How To Redirect To A Custom Page After Registration

Using the following snippet, you will be able to redirect to a custom page after registration.

Snippet Source/Credit: TheDeadMedic

Snippets Collection Part – 1

Programming-4

How To Completely Shut Down WordPress Search

Using the following snippet, you will be able to shut down WordPress search completely.

Snippet Source/Credit: WPEngineer

How To Enlight Searched Text In Search Results

Using the following snippet, you will be able to enlight searched text in search results.

And now just before the line you modified, add this code of lines:

Once done, now open style.css and append the following line to it:

Snippet Source/Credit: Yoast

How To Automatically Add Facebook Open Graph To Your Posts

Adding the following snippet in your WordPress theme’s functions file, you will be automatically able to add Facebook open graph to your posts.

Once done, now open your header.php and replace the <html> tag with:

Snippet Source/Credit: WP Tutsplus

How To Redirect To First Post If Only One Post Is Found

Using the following snippet, you will be able to redirect to first post if only one post is found.

Snippet Source/Credit: Paulund.co.uk

How To Make Your WordPress Website SEO Friendly Without A Plugin

Using the following snippet, you will be able to make your WordPress website SEO friendly without a plugin.

Once done, simply replace the $default_keywords in line 3 with your own keywords and add the following line of code into your theme’s header.php file.

Snippet Source/Credit: Jeff Starr

Best Of WordPress Snippets Collection Part – 1

WordPress Settings

How To Remove Default Author Profile Fields In WordPress

With the help of following snippet, you will be able to remove default author profile fields in WordPress.

Snippet Source/Credit: Snipplr

How To Remove Standard Gallery Style

Adding the following snippet to your theme’s functions.php file, you will be able to remove WordPress standard gallery style.

How To Add Custom Pinterest Button

Using the following snippet will let you add custom pinterest button in your WordPress website.

Add to your header above the body tag

 Edit and add to your page where you want your button to appear.

Snippet Source/Credit: flashalexander.com

How To Add Facebook Comments In Your Website

Using the following line of codes below, you will be able to add Facebook comments in your website.

Snippet Source/Credit: WordPress Codex

Best Of Snippets Collection – 5

Programming-1

How To Redirect Users To A Random Post

Using the following snippet, you will be able to redirect users to a random post.

Snippet Source/Credit: Smashing Magazine

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 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

How To Delete Links In Comments In WordPress

Using the following snippet, you will be able to delete links in comments in WordPress.

Snippet Source/Credit: Snipplr

Best Of Snippets Collection – 4

Programming-7

How To Get Email Alerts For 404 Pages In Website

Using the following snippet, you will be able to get email alerts for 404 pages in website.

Snippet Source/Credit: WP Mix

How To Have Custom Favicon For Your WP-Admin

Using the following snippet, you will be able to have custom favicon for your WP-admin.

Snippet Source/Credit: Snipplr

How To show All Active Plugins In Your WordPress Website

Using the following snippet, you will be able to know about all the active plugins in your WordPress website.

Snippet Source/Credit: Snipplr

How To Rename WordPress Folder

Using the following snippet you will be able to rename WordPress folder.

Snippet Source/Credit: Snipplr

How To Disable Plugins Update In Your WordPress Blog

Using the following snippet, you will be able to disable plugins update in your WordPress blog.

Snippet Source/Credit: WP Snippets

 

Best Of Snippets Collection – 3

Programming-2

How To Delete Post Revisions In WordPress

While one-to-many times you felt that the post revisions you have got in hand in your blog are very much useful BUT counting on another side, it is good to clear it up. To do so, simply paste the following snippet in your functions.php file and you are done.

Snippet Source/Credit: Hardeep Asrani

How To Count Your WordPress Website Blogroll Links

Using the following snippet, you will be able to count your WordPress website blogroll links.

Snippet Source/Credit: Jeff Starr

How To Modify Size Of Embedded Videos In WordPress

Simply paste the following snippet on your functions.php file and you will be able to modify the size of embedded videos as per your requirements.

Snippet Source/Credit: Shailan

How To Removing News Feed In WordPress Dashboard

The following snippet will let you remove news feed from your WordPress dashboard.

Snippet Source/Credit: Smashing Magazine

Best Of Snippets Collection – 2

Programming-4

How To Create Custom Terms Admin Column In WordPress

Using the following snippet, you will be able to create custom terms admin column in WordPress.

Snippet Source/Credit: WP-Snipp

How To Block Admin For All Users In WordPress

Using the following snippet you will be able to block admin for all users in WordPress.

Snippet Source/Credit: WPSnipp

How To Delete Links In Comments In WordPress

Using the following snippet, you will be able to delete links in comments in WordPress.

Snippet Source/Credit: Snipplr

How To Display Posts In Random Order In WordPress

Using the following snippet, you will be able to display posts in random order in WordPress.

Snippet Source/Credit: Snipplr

Best Of Snippets Collection – 1

Programming-6

How To Remove Existing Information From WordPress

The following snippet will let you remove existing information from WordPress.

Snippet Source/Credit: readers-cafe.net

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

Displaying WordPress Excerpt Dynamic Length

The following snippet display the WordPress excerpt dynamic length.

Snippet Source/Credit: Snipplr

How To Display Twitter Followers Image List

Using the following snippet, one can display Twitter followers image list.

Snippet Source/Credit: Snipplr

Page 3 of 7

Powered by WordPress & Theme by Anders Norén