WordPress.org

Ready to get started?Download WordPress

Forums

Having Plug-ins act different on index vs. post pages (2 posts)

  1. zonabi
    Member
    Posted 5 years ago #

    While implementing some Plug-Ins, I'm running into the issue where I'd like
    the post to appear a certain way on the index - but different on the
    individual post's page.

    For example a plug-in lets you collapse/expand some of the post's text on
    the index page, but on the individual posts it should be fully expanded (but
    the plugin continues to make it collapsed on all pages)

    Wondering if theres any good solutions or tricks to wordpress to understand
    in order to work around this.

    Thanks for your time and suggestions.

  2. zonabi
    Member
    Posted 5 years ago #

    a good friend suggested using the is_home() function in a conditional inside the plugin. this is a good start!

Topic Closed

This topic has been closed to new replies.

About this Topic