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

Tag: Snippets Page 2 of 7

Snippets Collection – 5 Of 5

Switching Hover/Touch Events For Desktop/Mobile Devices

The following snippet will switch the classical desktop hover events to touch events.

Snippet Source/Credit: jbkflex.wordpress.com

How To Make Accessible Menu Editor

Adding the following snippet to your theme’s functions.php file, you will be able to make accessible menu editor.

Snippet Source/Credit: Webundso

How To Simulate A View Of A Page With JavaScript Onclick

Using the following snippet, you will be able to simulate a view of a page with JavaScript onclick.

Snippet Source/Credit: Reiffs.dk

How To Add Rel=”Lightbox” To All Images Embedded In A Post

The use of following snippet will let you add rel=”lightbox” to all images embedded in a post.

Snippet Source/Credit: Snipplr

How To Change The CSS In WordPress

Using the following snippet, you will be able to change the CSS in WordPress.

Snippet Source/Credit: WPEngineer

Snippets Collection – 4 Of 5

How To Disable WordPress RSS Feed

The following snippet will let you disable WordPress RSS feed.

Snippet Source/Credit: bueitge.de

How To Divide Posts From One Category Into Two Columns

Using the following snippet, you will be able to divide your posts from one category to two columns.

Snippet Source/Credit: Snipplr

How To Get All WordPress Post Meta

The following snippet will let you get all WordPress post meta.

Snippet Source/Credit: Snipplr

How To Include Page Within Another Page

Using the following snippet will let you include page within another page.

Snippet Source/Credit: Snipplr

How To List Current Post Taxonomies And Terms

Using the following snippet, you will be able to list all the current post taxonomies and terms.

Snippet Source/Credit: Snipplr

Snippets Collection – 3 Of 5

How To Break Names Into Two Lines

The snippet will let you break names into two lines.

Snippet Source/Credit: FlashAlexander

How To Form Standard WordPress Comment

The snippet will let you form standard WordPress comment.

Snippet Source/Credit: Snipplr

How To Change Role Access To Menu And Widgets

By default, for changing menu and widgets, one will be requiring admin user roles. But, with the snippet below, you will be able to change role access to menu and widgets.

Snippet Source/Credit: WP-Snippets.com

How To Create Database For WordPress

Using the following snippet, you will be able to create database for WordPress.

Snippet Source/Credit: Snipplr

How To Execute Shortcode From Custom Field

The following snippet will let you execute shortcode from custom field.

Snippet Source/Credit: Leeboyce

Snippets Collection – 2 Of 5

How To Display Twitter Feed In WordPress

The following snippet will let you display Twitter feed in WordPress.

Snippet Source/Credit: Smashing Magazine

How To Execute Shortcode From Custom Field

The snippet will let you add shortcode to a WordPress custom field while by default; the option is not available by WordPress.

Snippet Source/Credit: Leeboyce.co.uk

How To Get WordPress Page Slug

The following snippet will let you get WordPress page slug.

Snippet Source/Credit: Snipplr

How To Add Custom WordPress Settings

Using the following snippet, you will be able to add custom WordPress settings.

Snippet Source/Credit: Snipplr

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

Snippets Collection – 1 Of 5

How To Disable WordPress Comments Completely

The following snippet will let you disable WordPress comments completely.

Snippet Source/Credit: aotearoawebdesign.co.nz

How To Add PayPal Button To Your WordPress Website

Using the following snippet will let you add PayPal button to your WordPress website. Remember to add the snippet to your theme’s functions.php file and you are done.

Snippet Source/Credit: Snipplr

How To Deactivate All WordPress Plugins

Using the following line of snippets, you will be able to deactivate all WordPress plugins.

How To Delete WordPress Post Revision From Database

The following snippet will let you delete WordPress post revision from the database.

Snippet Source/Credit: lesterchan.net

How To Display Recent Posts From All Sites

The following snippet will display recent posts from all sites.

Snippet Source/Credit: Snipplr

The Snippets Collection – 4

WordPress-Media-Upload

How To Automatically Add Post Name To The Body Class

The following snippet will let you automatically add post name to the body class.

Snippet source/Credit: WPProgrammer.com

How To Add An Extra Contact Methods To User Profiles

The following snippet will let you add an extra contact methods to user profiles.

Snippet Source/Credit: TutsPlus

How to change WordPress editor font

Using the following snippet, you will be able to change WordPress editor font.

Snippet Source/Credit: DevPress

How To Automatically Obfuscate Email Addresses

The following snippet will let you automatically obfuscate email addresses.

Snippet Source/Credit: WordPress Codex

How To Disable Plugins Update In WordPress

The following snippet will let you disable plugins update in WordPress.

Snippet Source/Credit: WP Snippets

The Snippets Collection – 3

WordPress

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 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 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 Limit Posts Per Page On Search

The following snippet will let you limit posts per page on search.

Snippet Source/Credit: WordPress.org

How To Log-in A WordPress User Programmatically

The following snippet will let you log-in a WordPress user programmatically.

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

Snippet Source/Credit: emoticode

Snippets Collection Part – 5

Programming-1

How To Display A Thumbnail Of Any Website

Using the following snippet, you will be able to display a thumbnail of any website.

Once done, you can use the snap shortcode:

Snippet Source/Credit: Greekeries.fr

How To Automatically notify your members on new posts

Using the following snippet, you will be able to automatically notify your members on new posts.

Snippet Source/Credit: WordPress Codex

How To Display A Thumbnail From A YouTube Video Using A shortcode

Using the following snippet, you will be able to display a thumbnail from a YouTube video using a shortcode.

Snippet Source/Credit: Gunay

How To Automatically Add Post Name To The Body Class

Add the following snippet in your theme’s functions.php file, you will be able to automatically add post name to the body class.

Snippet source/Credit: WPProgrammer.com

How To Add An Extra Contact Methods To User Profiles

Using the following snippet, you will be able to add an extra contact methods to user profiles.

Snippet Source/Credit: TutsPlus

How To Automatically Prefetch Next Pages On Your WordPress Blog

Using the following snippet will let you automatically prefetch next pages on your WordPress blog. All you have to do is to simply paste the snippet in your theme’s header.php file and you are done.

Snippet Source/Credit: Bernd

The Snippets Collection – 2

WordPress

How To Load jQuery From Google CDN

WordPress by default load its own jQuery in your theme BUT using the following snippet in your theme’s functions.php file will load the library directly from Google CDN.

Snippet Source/Credit: WP Tips

Adding Paragraph Tags Automatically In Your WordPress Blog

Using the following snippet, you will be able to add paragraph tags automatically in your WordPress blog.

Snippet Source/Credit: Daniel Pataki

Changing Author URL Base

The following snippet will let you change author URL base.

Snippet Source/Credit: Kevin Chard

How To Redirect To A Custom Page After Registration

The following snippet will let you redirect to a custom page once registration got completed. Simply copy the snippet and paste it to your theme’s functions.php file.

Snippet Source/Credit: TheDeadMedic

Changing 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

The Snippets Collection – 1

wordpress-logo

How To Remove Login Shake Effect At The Time When Error Occurs

Using the following snippet will let you remove the login shake effect when error occurs. Simply paste the following code in your theme’s functions.php file and you are done.

Snippet Source/Credit: WordPress Support Forum

How To Automatically Add Twitter And Facebook Buttons To Your Posts

Using the following snippet, you will be able to automatically add both Twitter and Facebook buttons to your posts.

Snippet Source/Credit: WPRecipes

How To Get The First Link In Post

Using the following snippet and pasting it in your theme’s functions.php file will let you grab the first link in the post.

Snippet Source/Credit: Filip Stefansson

How To Get Email Alerts For 404 Pages In WordPress

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

Snippet Source/Credit: WP Mix

How To Display Recently Registered Users

Using the following snippet, you will be able to display recently registered users.

Snippet Source/Credit: emoticode

Page 2 of 7

Powered by WordPress & Theme by Anders Norén