WordPress.org

Forums

Read and Understood
[resolved] Does this work with Custom Post Types? (3 posts)

  1. Christine
    Member
    Posted 1 year ago #

    Hi there

    This looks like a great plugin.
    Just a quick question- could you tell me if this works with custom post types please?

    Thanks.

    https://wordpress.org/plugins/read-and-understood/

  2. petermantos
    Member
    Plugin Author

    Posted 1 year ago #

    Christine,

    No, it does not.

    At the heart of RNU, there is a function called append_post_notification
    and there is a line in there that says "if($post->post_type == 'post') {"

    The intent is so that the Read-and-understood button doesn't show up on "regular" pages of the web site.

    The post types are:
    Post (Post Type: 'post')
    Page (Post Type: 'page')
    Attachment (Post Type: 'attachment')
    Revision (Post Type: 'revision')
    Navigation menu (Post Type: 'nav_menu_item')

    I suppose that we could change the logic to be something of the nature of "is anything but (the 4 other types)".

    However, there may be people who are using the plugin who take advantage of the fact that the RnU button shows up only on posts of type 'post' and that it does NOT show up on custom post types.

    I suspect that any enhancement would want to make the post-types user-selectable.

    Peter

  3. Christine
    Member
    Posted 1 year ago #

    Not a problem :-)
    Thank you for giving such a detailed answer by the way.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Read and Understood
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic