• Resolved Don Schwarz

    (@stnadmin)


    I am trying out the plugin and so far love it. I just have one challenge that I need to resolve. My theme has a slider on the home page that looks to posts within a category to create the slides from. It pulls the excerpt from the post into the slide as well as the thumb mouse over. Is there something that I can change the call to for the recipe?

    The slide pulling in an excerpt from a post http://i.imgur.com/wuNWpB6.png

    The code that is calling the excerpt: http://i.imgur.com/Wj7bz4Q.png

    So 2 possibilities I see:
    1. Adding excerpts to recipes
    2. Changing the slide show to pull from the descriptions or notes of a recipe.

    Thanks,
    Don

    https://wordpress.org/plugins/recipepress-reloaded/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jan Koester

    (@dasmaeh)

    The plugin is actually creating excerpts for recipes at least if you call them by get_the_excerpt(). I’m not sure how the excerpt field in the post list is generated. I will try to loook into this on thze weekend.

    Thread Starter Don Schwarz

    (@stnadmin)

    I looked at the records in the db and if I add text within the wp_posts table in the post_content field/column that will pull it into the slide. Unfortunately the user of the site won’t be able to do this. So maybe there is a way to add the fields to the recipe editing page?

    Plugin Author Jan Koester

    (@dasmaeh)

    This should be possible even without adding an extra field. We could save the text from the description field to post_content as well. However I won’t have time to do this soon.

    In the next weeks I will try to release version 0.6 of the plugin. I can include this new feature in version 0.7.

    If you like I can give you some alpha code for testing. You can also try to do this yourself and I will happily include your code. Look at php/class/rpr_core.php and edit the function recipes_save().

    Thread Starter Don Schwarz

    (@stnadmin)

    Alpha code would be great!

    Thread Starter Don Schwarz

    (@stnadmin)

    Here is what we did: https://gist.github.com/stnkris/58601609a899eb7f9fc3

    Do you see any issues with this?

    Plugin Author Jan Koester

    (@dasmaeh)

    That looks good. However I won’t find time to eveluate the code until the weekend.

    Plugin Author Jan Koester

    (@dasmaeh)

    Work is in progress to include proper excerpts: https://github.com/dasmaeh/recipepress-reloaded/tree/excerpts

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Is there an "excerpt" for a recipe?’ is closed to new replies.