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

Tag: Code Snippet Page 3 of 5

Best Of WordPress Snippet Part Six

Programming-1

How To Show Images In WordPress Simple Fields Plugin

The following snippet will let you show images in WordPress simple fields plugin.

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 Show Specific Post And Page In WordPress

The following snippet will let you show specific post and page in WordPress.

How To Solve Multiple Loops Problem In WordPress

The following snippet will let you solve multiple loops problem in WordPress.

How To Speed Up Your WordPress

The following snippet will let you speed up your WordPress by placing the following in the .htaccess file, replacing the standard WordPress .htaccess code.

Snippet Source/Credit: Canonicalseo.com

 

Best Of WordPress Snippet Part Five

Programming-2

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

How To Set Slug As String In WordPress

The following snippet will let you set slug as string in WordPress.

Snippet Source/Credit: insitewebsitedesign.com

How To Set WordPress Options As Value

The following snippet will let you set WordPress options as value.

How To Set WordPress Post Expiration Code

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

Snippet Source/Credit: nrbet.com

How To Share Databases Between Two Domains In WordPress

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

Snippet Source/Credit: WordPress.org

Best Of WordPress Snippet Part Four

Programming-3

How To Reverse Highlight With jQuery In WordPress

The following snippet will let you reverse highlight with jQuery in WordPress.

How To Set Basic Tag Cloud In WordPress

The following line of code will let you set basic tag cloud in WordPress.

How To Set Default Editor In WordPress

Adding the following snippet to your theme’s functions.php file will let you set default editor in WordPress.

How To Set Login And Password In WordPress

The following snippet will let you set login and password in WordPress.

How To Set Role And Capabilities In WordPress

The following snippet will let you set role and capabilities in WordPress.

Add this capabilities for every custom post type.

Best Of WordPress Snippet Part Three

Programming-4

How To Get Rid Of Unused Post Revisions In WordPress

The following line of codes will let you get rid of unused post revisions in WordPress.

Snippet Source/Credit: WPRecipes.com

How To Have CSS Minified In WordPress

The following snippet will let you have CSS minified in WordPress.

Snippet Source/Credit: fatfolderdesign.com

How To Hide ‘Help’ Tab From WordPress Dashboard

The following snippet will let you hide “help” tab from WordPress dashboard.

Snippet Source/Credit: WP-Snippets.com

How To Increase Server Memory Limit In WP-Config.php

The following snippet will let you increase server memory limit in wp-config.php.

How To Replace Theme’s Google Font With Your Own In WordPress

Using the following snippet will let you replace theme’s Google font with your own font in WordPress.

 

Best Of WordPress Snippet Part Two

Programming-7

How To Define A Template In WordPress

The following lines of code will let you define a template in WordPress.

Snippet Source/Credit: WordPress.org

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 Disable Sidebars And Widgets On Page Template In WordPress

The following snippet will let you disable sidebars and widgets on page template in WordPress.

How To Echo Starting 20 Words Of Any Page In WordPress

The following snippet will let you echo starting 20 words of any page in WordPress.

How To Get Image Path Relevant To Theme In WordPress

The following snippet will let you get image path relevant to theme in WordPress.

 

 

Best Of WordPress Snippet Part One

Programming-6

How To Add Database For WordPress Admin Users

The following snippet will let you add database for WordPress admin users.

Snippet Source/Credit: dnawebagency.com

How To Add JavaScript To A Post In WordPress

The following snippet will let you add JavaScript to a post in WordPress.

Snippet Source/Credit: WordPress.org

How To Change Admin Email To New Users

Using the following snippet will let you change admin email to new users.

Snippet Source/Credit: WPMUDev

How To Clean Dashboard Meta Boxes In WordPress

The following snippet will let you clean dashboard meta boxes in WordPress.

Snippet Source/Credit: WordPress Codex

How To Customize WordPress WP-Admin Login Page

The following snippet will let you customize WordPress WP-admin login page.

The Best Of WordPress Snippets – Part 5

Programming

How To Schedule Events In Your WordPress Website

The following snippet will let you schedule events in your WordPress website.

How To Show Posts For Category

You do turn selective one-to-many times in choosing the posts for category. While the thing can be achieved by manually but to ease the job, using the snippet below you can show posts for category as per the way you want.

Snippet Source/Credit: undolog.com

How To Automatically Create Greybox Imageset From Images Attached To Post

Using the following snippet you will be able to automatically create greybox imageset from images attached to post.

Snippet Source/Credit: Snipplr

How To Call jQuery In WordPress

The following snippet will you call jQuery in WordPress.

How To Create Short URL For Posts In WordPress

The following snippet will let you create short URL for posts in WordPress.

Snippet Source/Credit: Snipplr

How To Allow Multisite Network In WordPress

The following snippet will let you allow multisite network in WordPress.

 

 

 

 

The Best Of WordPress Snippets – Part 4

Programming-3

How To Read External Files In WordPress

We often find ways by which we can read external files in safest way. Well, in this I am sharing the snippet which will let you read external files in WordPress.

Snippet Source/Credit: Snipplr

How To Remove Code Which Got Added For An iframe Injection In WordPress

The following snippet will let you remove the code which got added for an iframe injection. Before doing this, make sure you do backup all your data.

Snippet Source/Credit: WordPress.org

How To Remove Dashboard Widgets In WordPress

The following snippet will let you remove the dashboard widgets in your WordPress website. Paste the following into your functions.php file.

Snippet Source/Credit: WPRecipes.com

How To Replace The WordPress Generator

The following snippet will let you replace the WordPress generator.

Snippet Source/Credit: DevZone.fr

How To Reset A Query In WordPress

The following snippet will let you reset a query in WordPress.

Snippet Source/Credit: Undolog.com

 

 

 

 

 

The Best Of WordPress Snippets – Part 3

Programming-4

How To Have Your WordPress Website Move From Local To Remote Procedures

The following snippet will let you have your WordPress website move from local to remote procedures.

How To Load Content Externally In WordPress

The following snippet will let you load content externally in WordPress.

Snippet Source/Credit: Snipplr

How To Manually load Google’s Latest jQuery In WordPress

Using the following snippet below, you will be able to manually load Google’s latest jQuery in WordPress.

Snippet Source/Credit: encosia.com

How To Organize WordPress Category Archive Listing By Subcategory

The following snippet below will let you organize WordPress archive listings by subcategory.

Snippet Source/Credit: iamnotagoodartist.com

How To Prevent WordPress Stylesheet From Being Cached

We often are in the condition in which we are looking out for the ways by which we can prevent WordPress stylesheet from being cached. To help you out with the same, the following snippet below will let you achieve the same.

Snippet Source/Credit: WPRecipes.com

The Best Of WordPress Snippets – Part 2

Programming-6

How To Get The Root Page ID In WordPress

The following snippet will let you get the root page id in WordPress.

Snippet Source/Credit: WordPress.org

How To Have Browser Detection Function In WordPress

Adding the following snippet in your theme’s functions.php file will let you have browser detection function in WordPress.

Snippet Source/Credit: afj176.com

How To Have Custom CSS Per Post In WordPress

One-to-many times we do wish to have custom styling in each and every post in WordPress. While such thing didn’t come in-built but with the help of snippet below, one can achieve that.

Snippet Source/Credit: digwp.com

How To Have WordPress Login Outside Blog Folder

The following snippet will let you have WordPress login outside blog folder.

Snippet Source/Credit: Snipplr

Page 3 of 5

Powered by WordPress & Theme by Anders Norén