• Resolved Dirk

    (@dirkhag)


    I use this plugin for posts and custom post types (Events Manager – events). It is working fine but in the subscription overview the titles of custom post types (events) are not shown, as you can see in the picture…

    See picture here….

    • This topic was modified 5 years ago by Dirk.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Dirk

    (@dirkhag)

    It seems this plugin is no supported anymore. No replies to the latest questions. That’s a pitty. I will look for another plugin.

    Thread Starter Dirk

    (@dirkhag)

    I found the solution myself.

    Modify the following file:
    manage-summary.php (comment-mail/src/includes/templates/type-s/site/sub-actions)

    Line 282 – 285:

     <?php if ($_sub_post && $_sub_post_type_label) : ?>
     <?php echo sprintf(__('%1$s ID <a href="%2$s">#<code>%3$s</code></a> <a href="%4$s">%5$s</a>', 'comment-mail'),
     esc_html($_sub_post_type_label), esc_attr($_sub_post_url),
     esc_html($_sub_post->ID), esc_attr($_sub_post_comments_url),
     esc_html($_sub_post_title_clip)); ?>
    <?php else : // Post no longer exists for whatever reason; display post ID only in this case. ?>
    <?php echo sprintf(__('Post ID #<code>%1$s</code>', 'comment-mail'), esc_html($_sub->post_id)); ?>
    <?php endif; ?>

    and modify it as follows….

     <?php if ($_sub_post) : ?>
     <?php echo sprintf(__('%1$s ID <a href="%2$s">#<code>%3$s</code></a> <a href="%4$s">%5$s</a>', 'comment-mail'),
     esc_html($_sub_post_type_label), esc_attr($_sub_post_url),
     esc_html($_sub_post->ID), esc_attr($_sub_post_comments_url),
     esc_html($_sub_post_title_clip)); ?>
    <?php endif; ?>
    • This reply was modified 4 years, 10 months ago by Dirk.
    • This reply was modified 4 years, 10 months ago by Dirk.
    • This reply was modified 4 years, 10 months ago by Dirk.
    • This reply was modified 4 years, 10 months ago by Dirk.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Title of custom post type not showing’ is closed to new replies.