Title: Conditional &#039;render&#039; value
Last modified: August 21, 2016

---

# Conditional 'render' value

 *  [manuelmasia](https://wordpress.org/support/users/manuelmasia/)
 * (@manuelmasia)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/conditional-render-value/)
 * Is it possible to change the value of ‘render’ setting according with the post
   type? Maybe I can declare add_theme_support when the post type is available somehow?
 * TIA, Manuel 🙂
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

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

 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/conditional-render-value/#post-4580479)
 * Hi! Instead of setting conditional render functions, you could have one render
   function and use conditional logic therein to render differently by post type.
 *  Thread Starter [manuelmasia](https://wordpress.org/support/users/manuelmasia/)
 * (@manuelmasia)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/conditional-render-value/#post-4580495)
 * Thank you for getting back to me.
 * I tried that in facts, but it doesn’t seem to understand what is the post type…
   If I add the function to ‘init’ it is to early to check what is the post type…
   am I right? If I add the function to a “later” hook, the “add_theme_support” 
   function doesn’t seem to work anymore…
 * BTW: I’m sorry, I’m talking about “infinite-scroll”, forgot to mention it before.
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/conditional-render-value/#post-4580512)
 * I tmight be easier to help you with this if you shared your code. Can you paste
   it to [http://pastebin.com](http://pastebin.com) for example?
 * Thanks,

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

The topic ‘Conditional 'render' value’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [conditional tags](https://wordpress.org/support/topic-tag/conditional-tags/)
 * [render](https://wordpress.org/support/topic-tag/render/)

 * 3 replies
 * 2 participants
 * Last reply from: [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/conditional-render-value/#post-4580512)
 * Status: not resolved