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

Tag: WordPress Snippets Page 3 of 6

Best Of WordPress Snippets RoundUp – 1

Programming-6

How To Show All Custom Fields For Each WordPress Posts

Using the following snippet, you will be able to show all custom fields for each of WordPress posts.

Snippet Source/Credit: WPSnipp

How To Show Or Hide Widgets On Specific WordPress Pages

Using the following snippet, you will be able to show or hide widgets on specific WordPress pages.

Snippet Source/Credit: WPSnipp

WordPress Display Page

Using the following snippet, you will put page directly into your page template.

Snippet Source/Credit: Snipplr

WordPress Login Screen

The following snippet will let you change login logo, login URL and login title.

Snippet Source/Credit: CSS-Tricks

How To Rewrite pagination slug in WordPress

The following snippet will let you rewrite pagination slug in WordPress.

Snippet Source/Credit: Snipplr

Best Of WordPress Snippets Collection – 6

Programming

How To Display 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

Changing The Post Updated Message Itself In WordPress

Using the following snippet, you will be able to change the post updated message in WordPress.

Snippet Source/Credit: Snipplr

How To Define A Minimum Word Count Per Post In WordPress

The following snippet will let you define a minimum word count per post in WordPress.

Snippet Source/Credit: Pippin Williamson

How To Use Gravatars In Your Script

With the use of following snippet below, you will be able to use Gravatars in your script.

Snippet Source/Credit: apphp.com

How To Disable Plugin Updates In WordPress

The snippet below will let you disable all the plugins updates in WordPress.

Snippet Source/Credit: WP-Snippets.com

How To Replace ‘Howdy, Admin’ In WordPress With Something Else

The following snippet will let you replace “Howdy, Admin” in WordPress.

Snippet Source/Credit: Snipplr

Best Of WordPress Snippets Collection – 5

Programming-1

How To Get Email Alerts For 404 Pages In WordPress

Using the following lines of codes, you will be able to get an email alerts for 404 pages in your WordPress website.

Snippet Source/Credit: WP Mix

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

Sharing Databases Between Two Domains In WordPress

The following snippet will let you share databases between two domains in WordPress.

In the active theme’s functions.php:

Snippet Source/Credit: WordPress.org

How To Test Whether A Plugin Is Active Or Not In WordPress

The following snippet will let you test that whether a plugin is active or not in WordPress.

Snippet Credit/Source: CatsWhoCode

Best Of WordPress Snippets Collection – 4

Programming-2

How To Add Theme Style To TinyMCE In WordPress

Using the snippet below you will be able to add theme style to style.css of the theme.

Snippet Source/Credit: eckstein.id.au

HowTo Call jQuery In WordPress

Using the following snippet, you will be able call jQuery in WordPress.

Creating Custom Post Type FAQ In WordPress

The following snippet will let you create custom post type FAQ.

Snippet Source/Credit: rentageekmom.com

How To Secure Your Uploads Directory In WordPress

Using the following snippet you will be able to secure your uploads directory in WordPress.

Snippet Source/Credit: Jeff Starr

Best Of WordPress Snippets Collection – 3

Programming-7

How To Remove News Feed In WordPress Dashboard

Using the following snippet, you will be able to remove news feed from your WordPress dashboard.

Snippet Source/Credit: Smashing Magazine

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 Remove Widgets From WordPress Dashboard

The following snippet will let you remove widgets from WordPress dashboard area.

Snippet Source/Credit: WP Guru

How To Remove WordPress Version

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

Snippet Source/Credit: Jeff Starr

How To Make Your WordPress Website SEO Friendly

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

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

Programming-6

How To Execute Shortcode From Custom Field

The snippet will let you add shortcode to a WordPress custom field.

Snippet Source/Credit: Leeboyce.co.uk

How To Have Login Form For Your Themes In WordPress

The following snippet will let you have login form for your themes in WordPress.

How To Disable Post Revision In WordPress

Add the following snippet to your theme’s wp-config.php file and you will be able to disable WordPress post revision.

Snippet source/Credit: lesterchan.net

How To Have WordPress Domain Check

Using the following snippet will let you have your WordPress domain check.

Snippet Source/Credit: Snipplr

How To Speed Up Your Blog By Adding Caching Custom Queries

Using the following snippet, you will be able to speed up your blog by adding caching custom queries.

Snippet Source/Credit: WordPress Codex

Best Of WordPress Snippets Collection – 1

Programming-4

Removing 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 In WordPress

Using the following snippet you will be able to remove standard gallery style in WordPress.

How To Clean Dashboard Meta Boxes In WordPress

Using the following snippet you will be able to clean dashboard meta boxes in WordPress.

Snippet Source/Credit: WordPress Codex

How To Remove Widgets From WordPress Dashboard

The following lines of code you will be able to remove widgets from WordPress dashboard.

Snippet Source/Credit: WP Guru

How To Remove Default Author Profile Fields

The following snippet will let you remove default author profile fields.

Snippet Source/Credit: Snipplr

Best Of WordPress Code Snippets Collection – 5

Programming-7

How To Show Top Level And Child Pages In WordPress

The following snippet will let you show top level and child pages in WordPress.

How To Have A/B Split Google Optimizer For WordPress

The following snippet will like you to have A/B split Google optimizer testing done for WordPress.

Snippet Source/Credit: Snipplr

How To Have Content From Separate Pages Without ID In WordPress

The following lines of codes will let you have content from separate pages without ID in WordPress.

How To Add Gravatars For Authors In WordPress

Simply paste the following snippet and you will be able to automatically add the author gravatar to each of their posts respectively.

Snippet Source/Credit: emoticode

How To Add PayPal Functionality In WordPress

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

Best Of WordPress Code Snippets Collection – 4

Programming-6

How To Set Simple Embedding PDF Shortcode In WordPress

The following snippet will let you set simple embedding PDF shortcode in WordPress.

Snippet Source/Credit: WPRecipes.com

Setting Up WordPress Post Expiration Code

The following snippet will let you set WordPress post expiration code.

Snippet Source/Credit: nrbet.com

How To Delete Post From Front End In WordPress

Adding the following snippet will let you delete post from front end in WordPress.

Snippet Source/Credit: WordPress.org

How To Show Repeatable Region In WordPress Simple Fields Plugin

The following snippet will let you see repeatable region in WordPress simple fields plugin.

How To Fix UTF-8 Issues In WordPress

Adding the following lines of code will let you fix UTF-8 issues in WordPress.

Follow these steps:

(see “Performing the actual conversion on your live database” section)

THEN install this plugin:

(fixes UTF8 encoding IN titles).

Snippet/Source Credit: Snipplr

Best Of WordPress Code Snippets Collection – 3

Programming-4

How To Fix Visual Formatting

The following snippet will let you fix visual formatting.

How To Make Accessible Menu Editor In WordPress

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 Make Your Search Results Unlimited

Start by finding the below code in your search.php file:

Once you found it, simply replace it with:

Snippet Source/Credit: WPHacks

How To Redirect Users To A Random Post In WordPress

Pasting the following snippet to your page-random.php file will let you redirect users to a random post.

Snippet Source/Credit: Smashing Magazine

Page 3 of 6

Powered by WordPress & Theme by Anders Norén