• Resolved MB Creation

    (@mbcreation)


    Hi guys,

    Nice work with that plugin. It does exactly what it says ??
    But maybe you should had few filters to make it better.
    Exemple line 121 :

    echo apply_filters( ‘widget_title’, $instance[“title”] );

    So themes / plugins can interact with it like core plugins…

    And for styling purpose line 135 could be
    post_class( ‘cat-post-item’ ) ;
    instead of echo “class=\”cat-post-item”;

    +Typo line 203. class= instead of class:

    Have a good day.

    Benoit/

    https://www.ads-software.com/plugins/category-posts/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Daniel Floeter

    (@kometschuh)

    Hello MB Creation,

    can you tell us your aim. I think you would replace some caracters or sth.?
    Very nice feature.
    It will be nicer you tell us what someone can do with filter the category name? ??

    Second: We will do your proposal.

    Third: You use not the last version. There is already a bugfix.

    Greetings Daniel

    Plugin Author Daniel Floeter

    (@kometschuh)

    Maybe we want to implement a filter to the entire generated HTML output.
    That sounds even better?

    Thread Starter MB Creation

    (@mbcreation)

    Hi, and thank you for coming back to me that quick !

    Regarding the filter, i often use the widget_title filter to apply effect to all widgets in sidebar (ie display widget title on two lines separate by a
    or strong etc…

    And i’m pretty sure i’m using the latest version….this is weird !

    Don’t think filter the all thing is a better idea, but always a “plus” to filter every output !

    Have a good day.

    Benoit

    Plugin Author Daniel Floeter

    (@kometschuh)

    Hello Benoit,

    now I’ll understand: Use a filter is also possible to add e.g. Html span elements with a class for icons.
    Add the option to filter headlines and text areas seperate or all together is also great.

    Our actual version is 4.1.4 and comes with nice features, like “hide posts which have no thumbnail”, “link to the category page below posts list” or “format the outputted date string”. Formating the date string is a good feature, but formating the generated output with a filter is preatty good, e.g. for adding design structured Html tags to the date presentation.

    Greetings
    Daniel

    Plugin Author Daniel Floeter

    (@kometschuh)

    Hello Benoit,

    I added both the filter hook for widget_title and use post_class().

    Are you familair with GitHub? Because you can download the code there (https://github.com/mkrdip/category-posts-widget) and copy it to your plugin folder ([your-wp-installation]/wp-content/plugins/category-posts-widget) to your wordpress installation.

    And write to us if it’s so good! ??

    Greetings Daniel

    Thread Starter MB Creation

    (@mbcreation)

    Thanks for the update, i’ll test that for sure ??

    Plugin Author Daniel Floeter

    (@kometschuh)

    Hello MB Creation,

    sorry but our decision is not to use post_class() in the widget area. There can be site effects from the content area where the same CSS classes can be used by Theme.
    Very nice function but more for post and content area, not for the widget area.

    If you’ll use the title filter and give us feedback, we are very pleased.

    Daniel

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Should use widget_title filter’ is closed to new replies.