function convergence_admin_episode_title($title) { global $post; $screen = get_current_screen(); if ('edit-episode' != $screen->id || !$post) { return $title; } $number = get_episode_number(get_permalink($post)); // return "#$number: " . $title; return convergence_episode_title($post, $title); }
<h3>Episodes with <?php echo get_the_title(); ?> </h3> <ul> <?php while (have_posts()) { the_post(); ?> <div class="episode-listing"> <li><a href="<?php the_permalink(); ?> "><?php echo convergence_episode_title($post); ?> </a></li> </div> <?php } get_template_part('loop', 'nav'); } wp_reset_query(); wp_reset_postdata(); ?> </ul> </div> <?php
<?php } ?> <br class="clear" /> <hr /> <?php foreach ($recent['fringe'] as $post) { ?> <div class="episode"> <h4 class="title-bag"><a href="<?php echo get_permalink($post['ID']); ?> "><?php echo convergence_episode_title((object) $post); ?> </a></h4> <div><p><?php echo $post['post_excerpt']; ?> </p></div> <div class="meta"> <div class="edit"> <a href="<?php echo get_edit_post_link($post['ID']); ?> ">Edit</a> </div> <div class="datetime">