/** * Filter calls to get_post_permalink() * * This affects the CPT slug shown in the admin and prevents the wishlist on the front end from redirecting to the actual name. * Uses ID as permalink * * @since 1.0 */ function edd_wl_post_type_link($post_link, $post, $leavename, $sample) { if ($post->post_type == 'edd_wish_list') { return edd_wl_get_wish_list_view_uri($post->ID); } return $post_link; }
* Public lists */ if ($public) { ?> <h3><?php echo sprintf(__('Public %s', 'edd-wish-lists'), edd_wl_get_label_plural()); ?> </h3> <ul class="edd-wish-list"> <?php foreach ($public as $id) { ?> <li> <span class="edd-wl-item-title"> <a href="<?php echo edd_wl_get_wish_list_view_uri($id); ?> " title="<?php echo the_title_attribute(array('post' => $id)); ?> "><?php echo get_the_title($id); ?> </a> <span class="edd-wl-item-count"><?php echo edd_wl_get_item_count($id); ?> </span> </span> <?php