• Hello!
    Loved your plugin. Would be awesome to add unread posts marks into wordpress “recent posts” widget, or another one like “Recently” plugin. I think, awesome idea is to enhance plugin to have it’s own sidebar widget showing to users their unread posts.

    Thank you!

    • This topic was modified 8 years, 1 month ago by yod.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi! Thank you for your feedback. That’s an interesting idea. Probably we’ll implement it in the next version.

    Thread Starter yod

    (@yod)

    solved by myself.
    So, need to find public function mark_title in mark-new-posts.php (line 194)

    Change to:

    public function mark_title($title, $post_id = null) {
    
    		if (in_the_loop() || is_admin() || !$this->is_new_post($post_id)) return $title;
    		return $this->options->check_markup ? '{mnp_mark}' . $title . '{/mnp_mark}' : $this->wrap_title($title);
    	}

    to show in sidebar only or

    public function mark_title($title, $post_id = null) {
    
    		if (is_admin() || !$this->is_new_post($post_id)) return $title;
    		return $this->options->check_markup ? '{mnp_mark}' . $title . '{/mnp_mark}' : $this->wrap_title($title);
    	}

    to modify titles everywhere, except wp-admin panel.

    Ah! Okay. But still, maybe we’ll make that into an out-of-the-box widget.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I add marks to wp Recent Posts widget?’ is closed to new replies.