More link – not text

you can use this code; function new_excerpt_more( $more ) { return ‘ <div id=”daha”><a class=”read-more” href=”‘. get_permalink( get_the_ID() ) . ‘”>Read More</a></div>’; } add_filter( ‘excerpt_more’, ‘new_excerpt_more’ );

Undefined offset: 2

You will have those notices, if either of those $pages indexes are not set. Check for the existence of the key before trying to use it. if (isset($pages[$current-1])) $prevID = $pages[$current-1]; if (isset($pages[$current+1])) $nextID = $pages[$current+1]; Or something along these lines … $prevID = (isset($pages[$current-1])) ? $pages[$current-1] : ”; $nextID = (isset($pages[$current+1])) ? $pages[$current+1] : … Read more

Disable plugin function

Whilst you’ve got the right idea, it won’t work in this case. Taking a look at the source code, the class is simply instantiated without an assign. There’s no way to get a hold of $this from outside the class, and so no way for you to remove the hooks it attaches itself to. This … Read more