I’ll ask them to fix. Thanks for debugging. Where is the tip jar?
I liked how it showed the previous/next post title, but for GeoDirectory I didn’t like Next Post | Previous Post, wasn’t useful. I couldn’t figure out fixing the issue so I commented out the contents of the function. Read below.
Note: If anyone has this problem the badgeos/content-filters.php contains the culprit code. The function is ‘badgeos_generate_post_link_by_post_id’.
Really the function that calls this one messes up as it seems to run another function first that looks like it would check if the post is a badgeos achievement or not.
I’m not sure how to fix the code so I commented it out.
/**
* Generate the post link based on custom post object
*
* @param $link
* @return string
*/
function badgeos_generate_post_link_by_post_id( $post_id , $rel) {
global $post;
if(!empty($post_id))
$post = get_post($post_id);
//Title of the post
$title = get_the_title( $post->ID );
if ( empty( $post->post_title ) && $rel == 'next')
$title = __( 'Next Post' );
if ( empty( $post->post_title ) && $rel == 'prev')
$title = __( 'Previous Post' );
$rel = ($rel == 'prev') ? 'prev' : 'next';
$nav_prev = ($rel == 'prev') ? '<span class="meta-nav">←</span> ' : '';
$nav_next = ($rel == 'next') ? ' <span class="meta-nav">→</span>' : '';
//Build link
$link = '<a href="' . get_permalink( $post ) . '" rel="'.$rel.'">' . $nav_prev . $title . $nav_next. '</a>';
return $link;
}