Useful .htaccess Tricks for WordPress

PHP Developers and WordPress developers some times comes across .htacess file. this file is configuration file for for security and performance. here i will show few usefull tricks to do with .htacess file. This file is located at root of your website (/public_html/)...

Common WordPress Errors and How to Fix

Syntax errors This error usually occurs when you are trying to add code snippets into WordPress and have accidentally missed something or the code has incorrect syntax. This will result into a PHP parse error and you will see a notice like: Parse error - syntax error,...

WordPress FAQ

Q. What are the types of hooks in WordPress a. There are two types of hooks 1) Action hooks 2) Filter hooks Q. What is custom field in wordpress? a. Custom field is a meta-data that allows you to store arbitrary information to the wordpress post. Q. What is the prefix...

how to create change password page in wordpress

to create a change password page for user in WordPress just save the code into your current theme directory Create new page in wp-admin/page name it as change select template "change password" publish it. thats all its done .   code   ...

Change WordPress default email

Every time someone submitted a comment on your blog, signed up as a user or did anything that required WordPress to generate and send an e-mail, by default the “From Name” in that message appeared as “WordPress” and “From” address was “wordpress@your-domain.com”. if...

WordPress post formats

WordPress allows you to switch on different post formats from a set list. You don’t have to use all of them, you simply have to pick which formats suit your site best. At the moment, this list consists of: Aside: Similar to a quick note. Use these for posts like quick...

WordPress Cheat sheet

This WordPress Cheat Sheet should be enough to get you started developing or tweaking WordPress themes. Basic Template Files style.css Style sheet file index.php Home Page file single.php Single post page file archive.php Archive or Category file searchform.php Search...

Extend User Contact Fieds in WordPress

We can add lots of contact information, depending upon your needs. To extend user contact info, open the files and add in this code   This is only a basic example and you can make it more complicated depending on your creative...

Taxonomy filter for admin area

While working on custom post everybody struggles while sorting the posts by custom taxonomy, if you add a code for each taxonomy then it will be lengthy. so here is the code for  sort by all taxonomies. Add it on your functions.php then sorting will be available on...

Creating custom Post Type In WordPress

WordPress big advantage while comparing with other CMS is Custom Post type mechanism. Custom post type allows to create large variety of content. Lets have a look at how to create a custom post type Custom post types are available from WordPress 2.9. Custom post type...

Correcting wp-admin 404 error for wordpress under IIS

If your server is on IIS  and   running WordPress and experiencing an issue where navigating to /wp-admin results in either a blank page or a 404 error, you may need an additional rule in your .htaccess file. Generally you’ll find that, assuming you’re set up...

How to Move a WordPress Site from One Server to Another

Step 1: Make a Local Copy of the Existing WordPress Site Files The first thing to do is connect to the FTP server which provides access to the files for the existing WordPress installation. Getting an entire site is time consuming and, with any decent FTP client, it’s...

PHP interview questions and answers

1)    What does a special set of tags <?= and ?> do in PHP? 2)    What’s the difference between include and require? 3)    I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem? 4)    Would I use...

Multimedia and canvas elements in HTML5

<canvas> The <canvas> element was originally developed by Apple® for use in Mac OS X Dashboard widgets and in Safari, but was later adopted by Mozilla® and Opera® in their Web browsers. The element has been standardized and included in the HTML5...

PHP Arrays

An array is a concept of declaring a variable in which multiple values can be stored or An array stores multiple values in a single variable.. an array in PHP is compound type. An array is actually an ordered map. A map is a type that maps values. Each element in...