Tutorials

Category

26 posts found

11 Apr 2015
0.77K
No Comments

Mostly #wordpress theme developers put header data information in header.php file of theme and they not use each different header file for each wordpress post or pages category and this is best dynamic and quick way to put header information in header.php like head tag and #css #javascript and other

Post in

7 Apr 2015
0.56K
No Comments

This is default simple documentation of #laravel to send mail but problems is that this is static mail passed in parameter to(‘foo@sdtuts.com’) We also need to pass the dynamic email, for example we used it for user registration steps to sent mail for activation it that time we need dynamic

Post in

17 Mar 2015
1.11K
No Comments

This is big storage problem in computer, mobiles and all other devices, heavy and camera images consumed too many storage and website will become heavy if heavy images used on websites I also use my php code to lose images weight without losing dimension and quality of image Here is

Post in

12 Dec 2014
0.8K
No Comments
Calculate time difference total hours minutes months years

I developed my custom code to get difference between two dates, code is different from #php date_diff because my code calculate the total number of seconds, minutes, days,  months and years. Its best way to define this code in function to use any where of project where you want it,

Post in

29 Nov 2014
0.72K
No Comments
Define theme template in wordpress

#wordpress provide a good page template feature show page layout in different layouts like single-column, double-column, full-page, or custom-template. default template is page.php for page, so you want to show contact form or different layout from other page. To define your layout  go to  /wp-content/themes/theme_folder/ create file with php extension,

Post in

27 Nov 2014
0.61K
No Comments

There is different way to access array and object many developers are use array instead object, if any a data get object and need to convert from object to array. Some are may be prefer to use object instead array, here is code example to quickly convert your large amount

Post in

19 Nov 2014
0.94K
No Comments

By default #wordpress get_search_form function return default html of search form, you want to change or modify search form html here is example to replace whole search form. In below code we used #wordpress hook to modify search form html

Post in

3 Nov 2014
0.64K
No Comments
File extension validation on upload will harmful for server

Please do not validate file extension on uploading file from user Hackers are created a fake jpg image with no preview and they add code encode on base64 or  gzinflate on picture source when you will open that image on notepad editor you will see code like if you just

Post in

19 Oct 2014
0.67K
No Comments

In some where we need only thumbnail source link the function the_post_thumbnail cannot return  thumbnail source link, we ca two ways to get thumbnail src. 1. wp_get_attachment_thumb_url 2. get_attachment_src

Post in

18 Sep 2014
0.97K
No Comments

Create wordpress password for your theme function or plugins

Post in