Support » Plugin: Jetpack by WordPress.com » Conditional 'render' value

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi! Instead of setting conditional render functions, you could have one render function and use conditional logic therein to render differently by post type.

    manuelmasia

    (@manuelmasia)

    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

    (@richardmtl)

    I tmight be easier to help you with this if you shared your code. Can you paste it to 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.