Saturday 19 March 2016

How To Load text domain in wordpress theme?

With this function you take the first step towards making your theme available for translation.

Its best to call this function from within the after_setup_theme() action hook i.e. after the setup, registration,

How to Add feed links (instead of old RSS code in head)

This one is simple. If you’ve been building WordPress themes for a while, you’ll remember the days when you had to manually include code to output the RSS feed right in the header.php. This approach is cleaner and relies on the wp_head()

Wordpress Attachment display settings


Once we’ve defined the above image sizes (regular, medium and large) — and since by default WordPress doesn’t do it for us

How to enable Featured image function in Wordpress theme?

The featured image function, as the codex explains, allows the author to choose a representative image for Posts, Pages or

Custom Post Types.

To enable this functionality, include the following code in your functions.php:

add_theme_support( 'post-thumbnails' );

We could stop there and leave it up to WordPress to define the thumbnail sizes or we could take control and define them
ourselves. We’ll do the latter, obviously!

How to add Post formats inWordpress theme ?

The post formats feature allows you to customize the style and presentation of posts. As of this writing, there are 9 standardized post formats that users can choose from: aside, gallery, link, image, quote, status, video, audio, and chat.

How to add Custom avatar in wordpress theme?

Most people commenting on blogs online have an avatar associated with them. If, however, they don’t and you don’t particularly like the WordPress default avatar options, you can define your own.

Style the WordPress TinyMCE visual editor

This function allows you to use custom CSS to style the WordPress TinyMCE visual editor.

Create a CSS file named editor-style.css and paste your styles inside. As a placeholder, I like to start with styles in

How to support Navigation menu in Wordpress theme ?

The navigation menu is very important esencial part of  wordpress theme.Navigation menu feature, introduced in WordPress

3.0, allows for the intuitive creation and maintaining of navigation menus in themes.

Monday 23 November 2015

Best 40 WordPress Interview Questions and answers

1) What is WordPress?
Word press is a best Open Source CMS which allows it to be used free of cost.  You can use it on any kind of personal or commercial website without have to pay a single penny for it. It is built on PHP/MySQL (which is again Open Source) and licensed under GPL.'

WordPress CMS Interview Questions & Answers

Q: What is WordPress?
Ans: WordPress is an open source Content Management System which can be used to built websites and Blogs. WordPress was released in 2003 and it is based on PHP & MYSQL.

Popular Articles