Title: Comparing user registration dates
Last modified: September 20, 2020

---

# Comparing user registration dates

 *  Resolved [shieldanvil](https://wordpress.org/support/users/shieldanvil/)
 * (@shieldanvil)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/comparing-user-registration-dates/)
 * Hi everyone,
    I’m new to the world of WordPress and looking for help to show 
   images based on days (or weeks) after a user registration. Is it possible to 
   do this with this plugin, and if so how? Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/comparing-user-registration-dates/#post-13435082)
 * Short answer – sure.
 * Long answer:
 * The information is stored in the `[registered]` field – see user section of manual.
   
   You can use `[if]` to check the value of the field and display content accordingly.
 *  Thread Starter [shieldanvil](https://wordpress.org/support/users/shieldanvil/)
 * (@shieldanvil)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/comparing-user-registration-dates/#post-13436127)
 * Thanks for your response [@polarracing](https://wordpress.org/support/users/polarracing/)
   
   What are the date compare functions available? I have managed to display user
   registration date using the plugins, but I’m not sure how to compare. `[set user_reg][
   user registered][/set] [pass field=user_reg] [if pass='{FIELD}’ value=today-7]
   Show image. [/if] [/pass]’
 *  [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/comparing-user-registration-dates/#post-13437624)
 * First one issue with your code.
 *     ```
       [set user_reg][user registered][/set]
       [pass vars] YOU ARE PASSING A VAR NOT A FIELD
       [if var='{USER_REG}’ value=today-7] 
       Show image.
       [/if]
       [/pass]
       ```
   
 * Check the date section in the `[if post]` section of the documentation for comparison
   options (in your case `[before]`).
    -  This reply was modified 5 years, 7 months ago by [polarracing](https://wordpress.org/support/users/polarracing/).
    -  This reply was modified 5 years, 7 months ago by [polarracing](https://wordpress.org/support/users/polarracing/).
    -  This reply was modified 5 years, 7 months ago by [polarracing](https://wordpress.org/support/users/polarracing/).
 *  Thread Starter [shieldanvil](https://wordpress.org/support/users/shieldanvil/)
 * (@shieldanvil)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/comparing-user-registration-dates/#post-13437807)
 * it works perfectly, thank you [@polarracing](https://wordpress.org/support/users/polarracing/)
   
   here it is in case there’s another noob like me looking for a similar function:
 *     ```
       [set user_reg][user registered][/set]
       [pass vars=user_reg]
         [if var='{USER_REG}’ after='1 week ago']
          [show image]
         [/if]
       [/pass]
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Comparing user registration dates’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [shieldanvil](https://wordpress.org/support/users/shieldanvil/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/comparing-user-registration-dates/#post-13437807)
 * Status: resolved