Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author sjiamnocna

    (@sjiamnocna)

    Thank you for reporting.
    I hope I’ll be able fixing it soon.

    Thread Starter zovitch

    (@zovitch)

    For now i fixed it by adding a condition in the code…
    in the file wpsongs-contenthooks.php

    //if not post type song, end proccess
        if(is_search()||is_archive()||!is_single())return$songbook_toedit;
        //add backtolist link to content
        if(get_option('songbook_disp_backtolistinsong')=='display'){
            $posturl=get_permalink(get_option('songbook_shcdefs_listpageid'));
            $songbook_backtolistlinklink='<a class="backtolist" href="'.$posturl.'" title="'.__('Go back to song list','wpsongbook').'"><<&nbsp;'.__('Go back to song list','wpsongbook').'</a>';
        }

    I added a if(get_post_type()=='song')

    I am not sure it’s the best way to fix it but it works for me.

    sorry i dont have the exact modified file here… but i guess it’s clear enough, otherwise i’ll post the exact modif soon if needed

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘back to song list displaying in all posts’ is closed to new replies.