How to remove email id & website box in wordpress comment

You can do by adding few lines of code in functions.php or using Disable Comment plugin. But adding few lines of code would be great. Steps: Go to Editor > Open functions.php file. Scroll down to the end of file and add lines of code given below function comments_custom_settings($fields) { unset($fields[‘url’]); unset($fields[’email’]); return $fields; } … Read more

Ajax Called in Plugin php file

You should not use your own AJAX handler PHP file. Your problem is that your file calls add_action() function and that function is part of WordPress, your file is not loaded in the WordPress context, so that function is not loaded. You need to load WP in your file first. But, that is not a … Read more

display new WordPress page content

First of all, you need to select the new template as your page’s template while creating a new page. To do this, choose the new template under “Page Attributes” setting just like below screenshot: Now, you should make sure you are outputting the content in your page. Create a simple loop, and use the_content() within: … Read more

Unable to add options on dashboard widget ?

$args[‘before_widget’] and $args[‘afters_widget’] (or after_widget) are things you’d add to a front-end sidebar widget. They have no relevance to dashboard widgets. The call to $args[‘before_widget’] is likely throwing an error because it’s not set. Also, your wp_dashboard_setup hook callback is an anonymous function. This won’t work on PHP < 5.3. So double check your PHP … Read more

A splash page on landing page

I would propose first to make this at the front end. The reason is Google and other crawlers can read your content and don’t penalize you for sneaky (the user didn’t expect a redirect) redirects or slow loading times. What I would do: On the main page : function load_splash() { setTimeout(function () { $(‘#hiddendiv’).hide(); … Read more