more tag not showing
-
When I add the <“!–more–> tag to one of my posts in order to display only approx. the first third of the post on the homepage, the more… link is not showing (https://einstern.at). How can I make it turn up like here https://criscom.at ? Thanks a lot for your help.
my index.php looks like this
<div class="entry"> <?php the_content('Den ganzen Beitrag lesen »'); ?> </div> <p class="postmetadata">Kategorie <?php the_category(', ') ?> <strong>|</strong> <?php comments_popup_link('0 Kommentare »', '1 Kommentar »', '% Kommentare »'); ?> <?php edit_post_link('Bearbeiten','<strong>|</strong> ',''); ?>
do i have to change the settings in the post-template.php somewhere?
here’s the relevant code in my post-template.php
function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { global $id, $post, $more, $single, $withcomments, $page, $pages, $multipage, $numpages; global $preview; global $pagenow; $output = ''; if ( !empty($post->post_password) ) { // if there's a password if ( stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]) != $post->post_password ) { // and it doesn't match the cookie $output = get_the_password_form(); return $output; } }
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘more tag not showing’ is closed to new replies.