• Resolved latinus1985

    (@latinus1985)


    Hello Bill,

    It would be great if in addition to include_date and include_excerpt you could add include_category to your shortcode.
    It’s particularly useful when we want to display posts from multiple categories on one page. Having this option implemented, I will certainly donate some money as in overall, your plugins is awesome! Thanks a lot in advance. Regards. Lukas

    https://wordpress.org/plugins/display-posts-shortcode/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    The problem with this is there’s so many different ways it could be displayed.

    Where do you want it to show up (before the content/excerpt or after)?

    Does it just list the category or does it include “Category:” or “Categorized as:”

    I think this belongs as a customization (using the output filter) since the actual implementation is so individual.

    In the next few weeks I’ll be working on and releasing a new version of this plugin. It will have a much more flexible output filter, so I recommend waiting until that’s ready.

    Thread Starter latinus1985

    (@latinus1985)

    So, as the plugin currently stands, is it possible to achieve displaying a category(ies) after eg. excerpt/date using an output filter? If so, how can I do it?
    Otherwise, I will wait until there is an update to the plugin. Thanks again for your great work!
    Regards

    Plugin Author Bill Erickson

    (@billerickson)

    Yes it is possible, but you’ll have to write the code yourself. Customizing the plugin is outside the free support I offer here.

    Here’s the relevant filter in the code: https://github.com/billerickson/display-posts-shortcode/blob/master/display-posts-shortcode.php#L436
    And here’s some sample customizations: http://www.billerickson.net/code-tag/display-posts-shortcode

    The reason I recommend waiting is that there will be an easier approach coming soon. It will still involve code, but should be cleaner than the existing solution.

    Hello,
    There are some news about that?
    I´m developing a mag and for me is very important to displayed the name of the categoy.

    I´ve tried this but it doesn´t work

    [display-posts include_excerpt=”true” image_size=”thumbnail” display-posts category=”true”]

    [display-posts include_excerpt=”true” image_size=”thumbnail” display-posts include_category=”true”]

    Do you know how can i do it?
    What about the new version of the plugin?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Suggestion] Display category name’ is closed to new replies.