Co-authors plus and Cite plugin
-
Hi,
We use the cite plugin with some modifications in order to accommodate multiple authors. However, the names of authors get printed twice on pages: where they ought to be printed plus above the citation box (where the function is called). Any idea what might be the issue ?
This is our code:
function cite_shortcode() { global $wpcp_setting; // Getting admin preferred date format for current date if(!function_exists('displayTodaysDate')){ function displayTodaysDate() { return date_i18n(get_option('date_format')); } } $find_string = array('{author}','{sitename}', '{title}', '{date}', '{publication_date}', '{permalink}'); $replace_string = array(coauthors(), get_bloginfo('name'), get_the_title(), displayTodaysDate(), get_the_date(), '<a href="' . get_permalink() . '">' . get_permalink() . '</a>'); $edited_setting = str_replace($find_string, $replace_string, $wpcp_setting[setting]); return '<div class="wpcp">' . $edited_setting . '</div>'; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Co-authors plus and Cite plugin’ is closed to new replies.