Coder Social home page Coder Social logo

hasinhayder / shared-taxonomy-counter-fix Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 5.0 7 KB

This plugin fixes the taxonomy counter in WordPress admin panel if the taxonomy is shared across multiple post types. It's a known bug in WordPress.

JavaScript 19.58% PHP 80.42%

shared-taxonomy-counter-fix's Introduction

Shared Taxonomy Counter Fix for WordPress

This plugin fixes the taxonomy counter in WordPress admin panel if the taxonomy is shared across multiple post types. It's a known bug in WordPress.

Conside the following situation

  1. You are using "category" in posts as well as in a cpt "cpt-x"
  2. You have two posts, and both of them are listed in two categories "Food" and "Beverage"
  3. You have two "cpt-x" posts, both of them are categorized as "Food"
  4. Now, when you come to the categories menu (in WP Admin Panel) you will see that "Food" and "Beverage" are shwing wrong counter as "3" and "1", while they should be "1" and "1" for posts, and "2" and "0" for "cpt-x".

It's a bug in WordPress, has been mentioned in Trac Ticket #19031 and countless times in different support sites as well as in StackExchange forums. This plugin is a quick fix for this known issue.

shared-taxonomy-counter-fix's People

Contributors

hasinhayder avatar

Stargazers

Md Din Islam avatar Zulfikar avatar Nazmul Hasan avatar Mahfuzul Hasan avatar  avatar Nazmul Haque shimul avatar Sabbir Hasan avatar Humaun Kabir avatar Junaid Ahmed avatar Emran Hossen avatar Emran Ahmed avatar David Bisset avatar Shah Alom avatar Luke Cavanagh avatar Arif Khan avatar Sagar avatar Sekander Badsha avatar Apurba Podder avatar Arifur Rahman Naim avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.