Title: Display Certain code based on Post author
Last modified: August 19, 2016

---

# Display Certain code based on Post author

 *  [John Robertson](https://wordpress.org/support/users/braddor/)
 * (@braddor)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/display-certain-code-based-on-post-author/)
 * Ok, I am trying to set up a simple ad sharing scheme for my authors with Adsense,
   so they get a cut depending on how much their posts earn. I want it to when someone
   views a post by author X, they see adsense code X, author Y, adsense code Y and
   so on. Im not any good at coding, so I just need to conditions. At the moment
   I will be doing for two authors, but since I do want to get more writes on board,
   could it be demonstrated how to modify the code for more display conditions?
 * I cant seem to find a plugin that does this well, so I want to try this out till
   the site makes some decent profits so I can pay them on a better system. I guess
   this will also encourage them to market their posts and take all the marketing
   pain of my shoulders.

Viewing 1 replies (of 1 total)

 *  Thread Starter [John Robertson](https://wordpress.org/support/users/braddor/)
 * (@braddor)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/display-certain-code-based-on-post-author/#post-1583202)
 * anyone?

Viewing 1 replies (of 1 total)

The topic ‘Display Certain code based on Post author’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [John Robertson](https://wordpress.org/support/users/braddor/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/display-certain-code-based-on-post-author/#post-1583202)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
