WordPress.org

Ready to get started?Download WordPress

Forums

hRecipe
Hook into plugin? (5 posts)

  1. Carrie Dils
    Member
    Posted 2 years ago #

    Hi, I'm using hRecipe in conjunction with the WP-Print plugin. I'd like to conditionally check to see if hRecipe is on a particular post and output the print link directly after the hRecipe output.

    Is there a way to hook into hRecipe or otherwise perform a conditional statement when outputting the post to see if hRecipe is being used?

    Thanks,
    Carrie

    http://wordpress.org/extend/plugins/hrecipe/

  2. Dave Doolin
    Member
    Plugin Author

    Posted 2 years ago #

    That would be in WP Print's bailiwick, Carrie.

    Thanks, Dave D

  3. Carrie Dils
    Member
    Posted 2 years ago #

    Hi Dave,
    Thanks for the superquick reply. I think I know how to manage it from WP Print's side. The question is how to determine "when" in the post loop hRecipe is done doing it's thing.

    Thanks,
    Carrie

  4. Dave Doolin
    Member
    Plugin Author

    Posted 2 years ago #

    Carrie, you should be able to grab the hrecipe subtree DOM from the div or fieldset with the hrecipe class attribute set. That *should* put it into one object. If it doesn't, ensure hrecipe is closing out the div or fieldset elements correctly (you can check this on the w3 validator: http://validator.w3.org/).

  5. Carrie Dils
    Member
    Posted 2 years ago #

    Ah, good thought! Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags