WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For example, I have a post that's filed under category 1 and category 2. When someone clicks on it from category 2, I want to know the slug for category 2. If it links from the category 1 page, I want to know the category 1 slug.

Is this even possible?

share|improve this question
up vote 0 down vote accepted

As anything that has to do with stats this is really an analytics task and as such not something that WP does natively.

You options are:

  • installing (if not already) some kind of analytics solution and getting data from it

  • add code to that post that will track referers (I won't really recommend this since it comes with performance issues and poor caching compatibility)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.