WordPress Theme Development

  Home  Web Development  WordPress Theme Development


“WordPress Themes Development based Frequently Asked Questions by expert members with experience as WordPress Theme Developer. These questions and answers will help you strengthen your technical skills, prepare for the new job test and quickly revise the concepts”



109 WordPress Theme Development Questions And Answers

63⟩ Tell me in PHP, what are magic methods and how are they used?

PHP functions that start with a double underscore – a “__” – are called magic functions (and/or methods) in PHP. They are functions that are always defined inside classes, and are not stand-alone (outside of classes) functions.

The magic functions available in PHP are:

☛ __construct(),

☛ __destruct(),

☛ __call(),

☛ __callStatic(),

☛ __get(),

☛ __set(),

☛ __isset(),

☛ __unset(),

☛ __sleep(),

☛ __wakeup(),

☛ __toString(),

☛ __invoke(),

☛ __set_state(),

☛ __clone(), and

☛ __autoload().

 209 views

64⟩ Tell me is it possible to rename the WordPress folder?

Yes, it is possible to rename the WordPress folder. If WordPress is already installed you have to login to the weblog as the administrator and then change the settings

WordPress address (URI) :

Blog address( URI) :

After making the changes, you can rename the folder or directory with the WordPress file in it.

 239 views

65⟩ Tell me how to disable wordpress comment?

Look in to dashboard under Options – Discussion. There is a checkbox there for “allow people to post comments on the article” Try unchecking that.

Also – you can do it in the box on the right in the Write screen. That only affects the one post, though.

 229 views

72⟩ Explain me why are all the comments being moderated?

Go to the Options > Discussion panel and make sure that An administrator must approve the comment (regardless of any matches below) is unchecked. With that option selected, all comments are sent to the moderation queue to await approval. Make sure that Hold a comment in the queue if it contains more than x links is not blank and contains a number higher than zero. If this value is blank or zero, all comments containing links will be moderated. If the option mentioned above is unchecked, the link moderation value is higher than zero, and you still have this problem, your Spam Words list probably has blank lines, punctuation marks, or single letters between the information in the list. There should be spaces between the listed items or each item must be on its own line. If you have done this, then upgrade the comment spam plugins you have installed. If this continues to be a problem, deactivate the comment spam plugins one by one to determine the culprit and contact the plugin author for help.

 226 views

73⟩ Tell me why wordpress.com is considered more secure than wordpress.org?

WordPress.com is considered more secure than wordpress.org because they limit the themes and also does not allow installing plugin’s. However the security is more dependable on how the hosting company is hosting your website(wordpress.org) & also what are the steps they are taking to prevent the security problems.

 228 views

78⟩ Tell me what are the template tags in wordpress?

A template tag is code that instructs WordPress to “do” or “get” something. Like in header.php we will use the tag bloginfo(‘name’) to get information from user profile.

☛ The the_title() template tag is used to display the post title.

☛ wp_list_cats() are for display categories.

☛ get_header() for getting header.

☛ get_sidebar() for display the sidebar on page.

☛ get_footer() for get the footer content on page.

 204 views

80⟩ Tell me how do I determine a Post, Page, Category, Tag, Link, Link Category, or User ID?

Sometimes it is necessary to know the ID of a particular Post, Page, Category, Tag, Link, Link Category, or User. To determine that ID, use one of these method:

Look in your browser status bar for the ID:

Visit the related ‘Edit’ screen in your Administration Panel. For instance in the case of Posts visit Posts->Edit, for Pages visit Pages->Edit, and for Categories visit Posts->Categories.

Now hover your mouse over the ‘item’ you need the ID. In the case of Pages, hover over that particular Page’s title in the Title column and for Categories hover over the Categories Name in the Name column.

Look at the status bar (at the bottom of your browser) and the you will find at the end of the line something like “post=123″ or “cat_ID=67″. In these cases, 123 is the Page ID, and 67 is the Category ID.

Install a plugin:

Install and activate Reveal IDs for WP Admin, Simply Show IDs, or ShowID for Post/Page/Category/Tag/Comment.

Find the ID displayed with each item.

 223 views