Forums

hRecipe
Hook into plugin? (5 posts)

  1. cdils
    Member
    Posted 4 months 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
    Posted 4 months ago #

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

    Thanks, Dave D

  3. cdils
    Member
    Posted 4 months 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
    Posted 4 months 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. cdils
    Member
    Posted 4 months ago #

    Ah, good thought! Thank you!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags