WPBeginner » Editorial Staff http://www.wpbeginner.com Beginner's Guide for WordPress Thu, 23 Jul 2015 12:58:32 +0000 en-US hourly 1 http://wordpress.org/?v=4.2.3 How to Fix Category and Comment Count After WordPress Import http://www.wpbeginner.com/wp-tutorials/how-to-fix-category-and-comment-count-after-wordpress-import/ http://www.wpbeginner.com/wp-tutorials/how-to-fix-category-and-comment-count-after-wordpress-import/#respond Thu, 23 Jul 2015 12:58:32 +0000 http://www.wpbeginner.com/?p=25810 Are you noticing an incorrect comment count after the WordPress import? Importing a WordPress site using the built-in importer can sometimes mess up your WordPress comments count. While all the comments are safely imported and visible in the admin area, your posts will show an… Read More »

To leave a comment please visit How to Fix Category and Comment Count After WordPress Import on WPBeginner.

]]>
Are you noticing an incorrect comment count after the WordPress import? Importing a WordPress site using the built-in importer can sometimes mess up your WordPress comments count. While all the comments are safely imported and visible in the admin area, your posts will show an incorrect comment count on your website. This same import error can also impact category count and custom taxonomy count. In this article, we will show you how to fix category and comments count after importing WordPress.

Fix Category and Comment Count

As you noticed in the screenshot above, after the import our comment count and category count is showing 0 instead of the actual number. Let’s take a look at how to fix it.

First you need to create a complete WordPress backup of your site. You should do this every time you are going to perform a major change on your site. We recommend using BackupBuddy, it is the most comprehensive WordPress backup plugin on the market.

Once you have made the backup, let’s move on to the next step.

Open a plain text editor like Notepad and simply copy and paste the following code:

<?php
include("wp-config.php");
if (!mysql_connect(DB_HOST, DB_USER, DB_PASSWORD)) {  die('Could not connect: ' . mysql_error());  }
if (!mysql_select_db(DB_NAME)) {  die('Could not connect: ' . mysql_error());  }

$result = mysql_query("SELECT term_taxonomy_id FROM ".$table_prefix."term_taxonomy");
while ($row = mysql_fetch_array($result)) {
  $term_taxonomy_id = $row['term_taxonomy_id'];
  echo "term_taxonomy_id: ".$term_taxonomy_id." count = ";
  $countresult = mysql_query("SELECT count(*) FROM ".$table_prefix."term_relationships WHERE term_taxonomy_id = '$term_taxonomy_id'");
  $countarray = mysql_fetch_array($countresult);
  $count = $countarray[0];
  echo $count."<br />";
 mysql_query("UPDATE ".$table_prefix."term_taxonomy SET count = '$count' WHERE term_taxonomy_id = '$term_taxonomy_id'");
		}

$result = mysql_query("SELECT ID FROM ".$table_prefix."posts");
while ($row = mysql_fetch_array($result)) {
  $post_id = $row['ID'];
  echo "post_id: ".$post_id." count = ";
  $countresult = mysql_query("SELECT count(*) FROM ".$table_prefix."comments WHERE comment_post_ID = '$post_id' AND comment_approved = 1");
  $countarray = mysql_fetch_array($countresult);
  $count = $countarray[0];
  echo $count."<br />";
  mysql_query("UPDATE ".$table_prefix."posts SET comment_count = '$count' WHERE ID = '$post_id'");
		}
?>

You need to replace DB_HOST, DB_USER, DB_PASSWORD with your WordPress database host (usually localhost), database username, and password.

You can find all this information by logging into your WordPress hosting cPanel or by looking at your wp-config.php file using a file manager.

Once you have replaced the information, save this file as comments-fix.php on your desktop.

Now you will need to upload this file to your site’s root directory. You can do that by using an FTP client or by using the file manager in your web hosting control panel.

After uploading the file to your website, you need to open your web browser and go to this file:

http://example.com/comments-fix.php

Replace example.com with your site’s address.

Visiting this file in your browser will run the script which simply loops through your posts, category, tags, comments, etc and update the count.

Fixing taxonomy terms and comment count numbers

Important: Once you’re done fixing your WordPress comment count, you need to delete comments-fix.php file from your server.

That’s all, we hope this article helped you update comments count after importing WordPress. You may also want to check out our guide on the most common WordPress errors and how to fix them.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

To leave a comment please visit How to Fix Category and Comment Count After WordPress Import on WPBeginner.

]]>
http://www.wpbeginner.com/wp-tutorials/how-to-fix-category-and-comment-count-after-wordpress-import/feed/ 0
How to Allow Authors to Chat in WordPress http://www.wpbeginner.com/plugins/how-to-allow-authors-to-chat-in-wordpress/ http://www.wpbeginner.com/plugins/how-to-allow-authors-to-chat-in-wordpress/#comments Wed, 22 Jul 2015 12:00:48 +0000 http://www.wpbeginner.com/?p=29113 When you run a multi-author blog, communication among team members become very important. There are several WordPress plugins that allow site-admins and authors to exchange notes and feedback within the WordPress admin area. However these notes and feedback may go unnoticed. In this article, we… Read More »

To leave a comment please visit How to Allow Authors to Chat in WordPress on WPBeginner.

]]>
When you run a multi-author blog, communication among team members become very important. There are several WordPress plugins that allow site-admins and authors to exchange notes and feedback within the WordPress admin area. However these notes and feedback may go unnoticed. In this article, we will show you how to allow authors to chat in WordPress.

An author chat page in WordPress admin area

Before getting started, please note that this is a live chat for authors on your site. Only users with access to the admin area can use the chat feature. If you want to add a live chat feature to the front-end of your WordPress site, then please take a look at our article on how to add free live chat in WordPress.

First thing you need to do is install and activate the Author Chat plugin. The plugin works out of the box. You can simply go to Dashboard or Dashboard » Author Chat screen to see it action.

Author chat widget on WordPress dashboard

This lite-weight chat system stores all chat messages in a separate table on your WordPress database. Make sure you visit the plugin’s settings page ‘Author Chat Options’ to set up an expiration period for chat logs.

Author Chat Log

The default expiration period is 30 days. If you are worried about the chat logs increasing your WordPress backup size, then you can remove the author chat table from your backups altogether.

Instead of using a live chat within WordPress, we use Slack for our team members. It’s far more efficient, and we highly recommend that you give it a try.

We hope this article helped you add the author chat feature to your WordPress site. You may also want to see our list of 7 best live chat support software for WordPress. Another resource that you would find useful is our list of 21 great plugins to efficiently manage multi-author WordPress blogs.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

To leave a comment please visit How to Allow Authors to Chat in WordPress on WPBeginner.

]]>
http://www.wpbeginner.com/plugins/how-to-allow-authors-to-chat-in-wordpress/feed/ 1
20 Most Influential WordPress Businesses and Companies Today http://www.wpbeginner.com/showcase/20-most-influential-wordpress-businesses-and-companies-today/ http://www.wpbeginner.com/showcase/20-most-influential-wordpress-businesses-and-companies-today/#comments Tue, 21 Jul 2015 12:00:32 +0000 http://www.wpbeginner.com/?p=27964 WordPress is one of the best examples of how businesses can thrive in an open source ecosystem. There are many multi-million dollar businesses earning all their revenue from WordPress related products and services. In this article, we will highlight some of the most influential WordPress… Read More »

To leave a comment please visit 20 Most Influential WordPress Businesses and Companies Today on WPBeginner.

]]>
WordPress is one of the best examples of how businesses can thrive in an open source ecosystem. There are many multi-million dollar businesses earning all their revenue from WordPress related products and services. In this article, we will highlight some of the most influential WordPress businesses and companies today. Hopefully this will inspire others to start their own WordPress businesses.

1. Automattic

Automattic

Founded by WordPress co-founder, Matt Mullenweg, Automattic is the company behind the popular blog hosting service WordPress.com (See the difference between WordPress.com vs self hosted WordPress.org sites). Automattic is also behind several other WordPress related products and services like Akismet, WooCommerce, Polldaddy, Gravatar, and VaultPress.

Automattic heavily contributes to open source WordPress.org, bbPress, and BuddyPress projects. In terms of influence, revenue, and the overall user base, Automattic is the industry leader among WordPress businesses and companies.

2. Envato

Envato

Envato runs the popular marketplace website ThemeForest and CodeCanyon. These are probably the second most popular destination for WordPress themes and plugins. Despite the license controversies in the past, Envato is one of the most influential WordPress businesses today.

3. Awesome Motive

Awesome Motive

Awesome Motive is the parent company of WPBeginner, the largest free WordPress resource site. Founded by Syed Balkhi, the company sells several WordPress related products like Soliloquy, Envira Gallery, ThemeLab, and the best-selling lead generation software OptinMonster.

Awesome Motive also runs several popular web properties including List25 and WPBeginner.

4. Copyblogger

Copyblogger

Copyblogger is the parent company of StudioPress, a popular premium theme company behind the Genesis Theme framework.

Aside from StudioPress, Copyblogger also offers WordPress hosting through WebSynthesis and a completely custom platform, Rainmaker, that allows you to create membership sites.

Copyblogger has a huge user base of bloggers, developers, and site owners.

5. WPEngine

WPEngine

WPEngine is one of the most popular managed WordPress hosting provider. Loved by developers, site owners, and venture capital firms, WPEngine is among the fastest growing companies in WordPress.

6. Pagely

Pagely Home

Pagely is the first managed WordPress hosting platform. Their robust server architecture is powered by Amazon Cloud. This allows you to have the same best-in-class performance, redundancy, and scalability that is available to the biggest brands in the world without having to deal with any of the technical details.

Pagely is a trusted enterprise hosting provider for brands like Disney, Microsoft, Facebook, Twitter, eBay, Vonage, and thousands of others.

Note: Pagely is our hosting partner for OptinMonster.

7. Yoast

Yoast

Yoast is the company behind the immensely popular WordPress SEO by Yoast plugin. Yoast provides several WordPress plugins helping millions of users with the optimization of their WordPress sites.

They also offer website SEO, conversion reviews and auditing services. Their client lists include some of the world’s biggest brands.

8. IncSub

Incsub

IncSub is the company behind WPMUDev and Edublogs. They offer hunderds of free and paid WordPress plugins and themes. The WPMUDev site has more than 350,000 active members.

9. Pippins Plugins

Pippins Plugins

Founded by Pippin Williamson, Pippins Plugins is the company behind the immensely popular Easy Digital Downloads, AffiliateWP, and Restrict Content Pro plugins. In a short span of time Pippin’s Plugins has developed a huge customer base and a strong following among the WordPress community.

10. Rocketgenius

Rocketgenius

Rocketgenius is the company behind Gravity Forms, the contact form plugin loved by everyone. Gravity Forms is admired by developers and site owners alike. With its ease of use, it quickly became the best contact form plugin for WordPress sites.

11. iThemes

iThemes

The creators of BackupBuddy, iThemes is one of the leading WordPress companies offering wonderful products. Their developer tool kit includes amazing WordPress tools like BackupBuddy, Sync, iThemes security, iThemes exchange, and more.

12. 10up

10up

10up is a web design and consulting firm specializing in open source platforms like WordPress. 10Up contributes hours of development back to the WordPress project by submitting patches and employing dedicated staff to work on the WordPress.org project. They are also one of the featured WordPress.com VIP partners. The company has an impressive list of clients with brands like TechCrunch and organizations like World Economic Forum.

13. Crowd Favorite

Crowd Favorite

Crowd Favorite is a web development agency specializing in WordPress. The company maintains the popular Carrington theme framework, offers several free WordPress plugins, its leadership is widely respected in the WordPress community. They have worked with the leading global brands such as Starbucks, Sony, Walmart, Motorola, MailChimp, etc.

14. Modern Tribe

Modern Tribe

Modern Tribe is a WordPress design and development agency with a twist. They are a collaborative organization of all freelancers and all experts. The company has only 7 employes, no offices, and 30+ freelancers in 4 countries. They are also creator of The Events Calendar plugin.

15. Web Dev Studios

WebDevStudios

Web Dev Studios is one of the leading WordPress design and development agencies. They have authored several books on WordPress and are actively involved in the WordPress community. Their clients include several big name brands like Microsoft, Time, MSNBC, NBC, and WPEngine.

They have also contributed several very popular WordPress plugins like Custom Post Types UI, Reactor, and many more.

16. Human Made

Human Made

A UK based WordPress design and development agency, Human Made is an official WordPress.com VIP partner. They specialize in enterprise scale development for global brands like News Corp, Sony, PayPal, Skype, Airbnb, and many more. They also offer several free and paid WordPress plugins like WPRemote, BackupWordPress, WPThumb, and WordPress Menu Exporter.

17. Flywheel

Flywheel

FlyWheel is a managed WordPress hosting solution built for designers and agencies. The company differentiates itself from other managed WordPress hosting providers by offering a realistic set of features with each plan. It also allows freelancers and designers to build their site and then send it to client to pay for Flywheel hosting.

18. Themify

Themify Home

Themify is a premium WordPress theme and plugins shop. The offer WordPress themes in different categories, catering the needs of different industries. They also offer a club membership where users can access all their products with a subscription program.

19. ThemeFusion

ThemeFusion

ThemeFusion is the company behind Avada, the top selling WordPress theme on Envato’s Themeforest marketplace. With more than 135,000 active users, Avada is considered by many as the swiss army knife of WordPress themes. The company also offer theme customization and consultation services.

20. Themeco

Themeco

Themeco is the company behind the famous X WordPress theme. X uses stacks which allow site owners to deploy completely new designs to the X WordPress theme. Themeco is the second top seller on Envatos Themeforest marketplace.

There are two companies that we would have been included into the list, but both of them were acquired by Automattic. WooCommerce the most popular WordPress eCommerce solution, and Code for People, a UK Based WordPress design agency.

The WordPress ecosystem is evolving rapidly and new companies are appearing on a regular basis. Many of them will soon grow to become an influential WordPress businesses in their own niches. There is plenty of room for new businesses to join the WordPress ecosystem and hopefully we will see many more new companies rise to the top in near future.

We hope you found this list inspiring and useful. You may also want to take a look at our list of the top brands using WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

To leave a comment please visit 20 Most Influential WordPress Businesses and Companies Today on WPBeginner.

]]>
http://www.wpbeginner.com/showcase/20-most-influential-wordpress-businesses-and-companies-today/feed/ 11