Blog Archives

Remove Website Field From WordPress Comment Form

Remove the website / URL field in WordPress comment form. /** * Remove webiste field from WordPress comment form * * Removes the website field when comments form is displayed with comment_form() * * @since 1.0 */ function velocity_remove_comment_form_website_field( $fields

Posted in WordPress Tagged with: , , ,

Remove Comment Author Link In WordPress Comment List

Add the following code snippet to the functions.php of your theme to remove the links to the comment author website in WordPress comments list. Works when the comments list is generated with wp_list_comments(). /** * Remove comment author link in

Posted in WordPress Tagged with: , ,

Add Custom Post Type To Tag And Category Archive Pages

Here is how to modify the query for default taxonomy archive pages (tag archive page or category archive page) to display custom post types. /** * Add custom post types to the default tag query * * This will make

Posted in WordPress Tagged with: , ,

Read Plugin Version Of Any WordPress Plugin

Using the get_file_data() function. More efficient than using get_plugin_data() function. $plugin_data = get_file_data( WP_PLUGIN_DIR . ‘/plugin-folder-name-in-wp-content-plugins-folder/plugin-main-file.php’, array( ‘Version’ => ‘Version’ ) ); $plugin_data[‘Version’] will have the version. To read version from within the same plugin: $plugin_data = get_file_data( __FILE__, array(

Posted in WordPress Tagged with: , ,

Debugging Apache .htaccess Rewrite Rules

In Apache 2.4, open up httpd.conf and find the line that starts with LogLevel. Change that to: LogLevel alert rewrite:trace6 Your error.log (in \apache\logs\ typically) will have the detailed trace of the rewrite rules. Example: http://snippi.com/s/c75uk61 More info: http://httpd.apache.org/docs/current/mod/mod_rewrite.html#logging

Posted in Internet, WordPress Tagged with: ,