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

Limit length of headline in Editor

You could add this function : add_action(‘publish_post’, ‘wpse_105297_max_char’); function wpse_105297_max_char() { global $post; $title = $post->post_title; if (strlen($title) >= 100 ) wp_die( “The max lenght is 100 for title” ); } This will prevent users from using too much longer titles.

Function to get thumbnail img source

wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); all together: <div class=”entry-thumbnail”> <a rel=”lightbox” href=”https://wordpress.stackexchange.com/questions/107218/<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>”><?php echo get_the_post_thumbnail( $post->ID ); ?></a> </div>