• Resolved duckian

    (@duckian)


    Hi, I’d like to create a customized archive page to display all recipes for a particular course (e.g. breakfast)

    get_the_excerpt() almost works, but it adds “Category: Breakfast” before the excerpt. Is this a bug?

    I want to display the first 20 words of the description, but get_the_excerpt() will output the entire description. Is this normal?

    In general, how do I retrieve description / excerpt or a recipe?

    Many thanks.

    https://www.ads-software.com/plugins/recipepress-reloaded/

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

    (@dasmaeh)

    Hi,

    it is intended that get_the_excerpt() does not only display the description text of the recipe but also other relevemt inmformation such as course, cuisine, preparation time and so on.

    If you want to display description only you should be able to use $post[‘excerpt’];

    I’ll put the template tag get_the_description() on the feature wishlist.

Viewing 1 replies (of 1 total)
  • The topic ‘retrieve description / excerpt’ is closed to new replies.