• Resolved tiguan

    (@tiguan)


    Hi,

    Awesome plugin!
    I’m Themeforest author and want to include your plugin as a recommended one in one of my theme.
    Is there a way to make it work for human_time_diff instead of the_time ?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi. Thanks for your feedback. Sorry, we don’t quite understand the problem.

    Thread Starter tiguan

    (@tiguan)

    Hi,

    Sorry, I meant: is there a way to make the plugin to place the mark sign after the human_time_diff funtion instead of the_title in the filter below?

    add_filter('the_title', array(&$this, 'mark_title'), 10, 2);

    Modifying the filter to this, doesn’t work, the mark sign is allways present even a post was read:
    add_filter('human_time_diff', array(&$this, 'mark_title'), 10, 2);

    Also is there a way to also display another mark sign if a post has been read? Some conditional like this one will be great (pseudocode):

    if ( post_was_read ) {
    echo '<span>character</span>'
    }

    Some external filters will be great.

    Thanks

    • This reply was modified 7 years, 10 months ago by tiguan.
    • This reply was modified 7 years, 10 months ago by tiguan.
    Thread Starter tiguan

    (@tiguan)

    Forgot about the post above ??

    I only need to use mnp_is_new_post($post); showing a custom FontAwesome icon if a post is new and another icon if post is old.

    Any help will be great.

    P.S. I’ll place a credit link to the theme description page if you can help me.

    Hi. Is the problem still there? As I understand, everything is quite clear now: you just need to use the mnp_is_new_post($post) in your theme’s code and set Marker type to None in MNP settings.

    Thread Starter tiguan

    (@tiguan)

    Hi,

    you just need to use the mnp_is_new_post($post) in your theme’s code and set Marker type to None in MNP settings.

    That’s right!

    Thanks!

    [ No bumping please. ]

    • This reply was modified 7 years, 10 months ago by tiguan.
    • This reply was modified 7 years, 9 months ago by Jan Dembowski.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘human_time_diff filter’ is closed to new replies.