Subscribe
Tutorial search

PHP Tutorials


We hope that you will enjoy our PHP tutorials. Feel free to contact us if you would like to be a tutorial hero and contribute your own PHP tutorial to our site. Thank you !

Sort by:
Get WordPress Theme Information
Get WordPress Theme Information
Wordpress has an inbuilt function to get the information inside the theme comments in the stylesheet, this function is called get_theme_data().
Difficulty:
PHP Sessions on all subdomains
PHP Sessions on all subdomains
If your website handles multiple subdomains and you want to retain the session while a user navigates through them. Here is a quick and easy fix.
Difficulty:
Secure WordPress Config File With htaccess
Secure WordPress Config File With htaccess
Your wp-config.php file stores all of your config variables for your Wordpress site. If someone has access to this file they will be able to see your database username and password. When you first install Wordpress there is a default wp-config-sample.php file which you need to rename and modify.
Difficulty:
How To Exclude Posts From Wordpress Search
How To Exclude Posts From Wordpress Search
There may be times when you have a little rant of make a mistake in a post and want to exclude this from the in-built Wordpress search functionality. There is a way you can intercept the Wordpress search functionality</a> and exclude certain posts from being displayed. All you have to do is find out the post ID and add it to the following function in your functions.php file.
Difficulty:
Automatically Set Post Featured Image
Automatically Set Post Featured Image
A post featured image was introduced in WordPress version 2.9, it is a thumbnail that can be set to the post as a featured image of your post. It will not be displayed on the page but it's up to the WordPress theme to decide when to display it. Enable Theme Support For Featured Post By default themes do not support this feature you need to add some code to the functiona.php file.
Difficulty:
Strong WordPress Speed Optimization For Shared Hosting And More
Strong WordPress Speed Optimization For Shared Hosting And More
Make your Wordpress site perform well under shared hosting or otherwise. Find the plugins that slow you down, find your alternatives, and make your WP install work for you without crashing or slowing down!
Difficulty:
Change The Amount Of Wordpress Post Revisions Stored
Change The Amount Of Wordpress Post Revisions Stored
Wordpress has a autosave feature which will automatically save a revision of your post as you are typing. But the problem with this comes when you have a Wordpress blog with hundreds of posts. Each one of these posts will have a number of automatically saved post revisions.
Difficulty:
Are you an unemployed developer? Here's what to do
Are you an unemployed developer? Here's what to do
I keep running into unemployed devs, people that can do a lot of the things I do, and almost definitely everything I currently get paid for. It’s always surprising to me. Here's a quick overview on how to get a job as a PHP dev.
Difficulty:
Create Custom Image Sizes For Your Wordpress Theme
Create Custom Image Sizes For Your Wordpress Theme
But WordPress will only allow you to use 3 image sizes, thumbnail, medium and large which you can choose from when you add the image to your post. If you want more options for options then you need to add a bit of code into your functions.php file, use the below snippet to add additional images sizes to your media files. This uses the WordPress function add_image_size to add a new image size to your WordPress theme.
Difficulty:
Display Feedburner Subscriber Count as Text
Display Feedburner Subscriber Count as Text
Display your Feedburner Subscriber count as plain text for integration into your website.
Difficulty:
Add Additional Links To The WordPress Plugin Admin
Add Additional Links To The WordPress Plugin Admin
When you activate a plugin in WordPress the author can place links in the plugin dashboard screen to show the users of the plugin links back to the plugin homepage, support page, FAQs or a way to contact the creator of the plugin. By default WordPress will add the name of the author and a link back to the plugin homepage. Using this snippet you can add extra links to this section like the image below from the Antivirus WordPress plugin.
Difficulty:
aMember with Payment Gateway Setup to Create Membership Site -Part 3
aMember with Payment Gateway Setup to Create Membership Site -Part 3
Integration of payment system like ClickBank, PayPal with aMember can be easy for the membership site setup. AMember allows various payment plugins to integrate various payment systems based on our requirements with simple plugin configuration within aMember admin panel. The plugin configuration and settings need some keys and thank you page with the payment system.
Difficulty:
Spend a night in the company of a Vlondon Escort in Finsbury Park
Spend a night in the company of a Vlondon Escort in Finsbury Park
Spend a night in the company of a Vlondon Escort in Finsbury Park will give them exactly what they are looking for.
Difficulty:
Display The Post Date In Wordpress
Display The Post Date In Wordpress
If you are using the WordPress loop to display your posts then you should be using the get_the_date() function. The difference is get_the_date() will always return the date of the current post. This doesn’t have any parameters so using it is very simple.
Difficulty:
How to Install Wordpress Manually Using cPanel in Under 5 Minutes
How to Install Wordpress Manually Using cPanel in Under 5 Minutes
There a few problems associated with 1-click installations that can drive you to the brink of insanity, so you are better off learning how to install Wordpress the old-fashioned way. This step-by-step guide will teach you how to manually install Wordpress using cPanel from scratch.
Difficulty:
Total Tutorials in Category: 4426