WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Request for backlink from /glossary/single_word/

[Resolved] Request for backlink from /glossary/single_word/

Viewing 1 replies (of 1 total)
  • Plugin Author TCBarrett
    Member

    @tcbarrett

    Hi jchris

    Not sure how to do this nicely as an option/setting in the plugin.

    You can achieve it yourself either by writing your own single-glossary.php template file, or with a filter.

    add_filter( 'the_content', 'tcb_wpg_backlink' );
    function tcb_wpg_backlink( $content ){
      global $post;
      if( is_single() && $post->post_type == 'glossary' ):
        $content .= '<br><a href="javascript:javascript:history.go(-1)">¬ęBack</a>';
      endif;
      return $content;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Request for backlink from /glossary/single_word/’ is closed to new replies.