• Resolved criscom

    (@criscom)


    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)
  • Quick question: Was <"!--more--> a typo? (That double-quote in there). Should be <!--more-->.

    You definitely should not have to touch any core code to get this working.

    Thread Starter criscom

    (@criscom)

    Sorry, bad typing; I added <!–more–> to cut off the post. The post is displayed up to the <!–more–> tag. The rest of the post text is not visible. So far that’s what I want. Alas, there’s not more… link for the reader to click and read on. She can only do that by clicking on the header of the post. But that’s not what I want. I am referring to the first post displayed on: https://www.einstern.at
    Your help is much appreciated

    The first 2 posts at the link seem like full posts. The third (“LTNC Website mit wordpress: Tiger burning bright”) is the one with <!--more--> in it?

    If you disable all plugins, does it work? Perhaps there is a conflict.

    If you change the_content to use the &raquo;, does it work?
    <?php the_content('Den ganzen Beitrag lesen &raquo;'); ?>

    Thread Starter criscom

    (@criscom)

    The post I’m refering to is called:

    Die Kunst stressfreier Produktivit?t

    (Sorry, I was not precise enough)

    And the <!–more–> tag is positioned right after the word “kontrollieren.”

    Here is my entry in the backend edit panel:

    welches wir regelm??ig kontrollieren.
    <!--more-->
    <em>“Das Licht auf der Toilette geht nicht mehr. Ich muss eine Energiesparlampe besorgen.”
    “Die Druckvorlage ist nicht korrekt. Ich muss mich mit dem Produzenten in Verbindung setzen.”
    “Dieses Buch m?chte ich unbedingt lesen.”</em>

    I have changed the code in my index.php like you suggested:

    <div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('j. F Y') ?> <!-- von <?php the_author() ?> --></small>
    
    				<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> ',''); ?> 
    
    				<!-- BEGINN WP-PRINT 2.1 PLUGIN -->
    
    		 <strong>|</strong> &nbsp;<?php if(function_exists('wp_print')) { print_link(); } ?>
    
    		<!-- END WP-PRINT 2.1 PLUGIN -->
    
    				</p>
    			</div>
    
    		<?php endwhile; ?>

    I also suspect, like you suggested that the problem may have to do with one of the plug ins. I have tried to deactivate all plug ins but to no avail. I have also removed the wp-print-plug in – same result: more tag not showing. I am clueless… Thanks for you support

    Thread Starter criscom

    (@criscom)

    i have just disabled all plug-ins again. More-link still invisible.

    welches wir regelm??ig kontrollieren.
    <!--more-->
    <em>“

    What would happen if you removed the <em> tags from that next section?

    One last question — if you use the Default theme, does it work?

    Thread Starter criscom

    (@criscom)

    sorry for my late reply – have slept for a few hours ??

    I use the default-theme de-edition (that’s the german edition of the default kubrick-theme).

    I have tried switching themes right now and the more link shows when I use the defaul-kubrick theme version 1.6 by Michael Heilemann. (I have switched back to the de-edition, in the meantime – or should I leave it on for you to have a look?)

    Since I have made a lot of adjustments in the de-edition that I am using, one of these adjustments must have messed up the code. seems i have to start rebuilding my design from the default-kubrick 1.6 theme again from the start. what would you suggest?

    removing the <em></em> doesn’t change anything.

    Thread Starter criscom

    (@criscom)

    problem resolved: I am embarrassed to say that I have had switched off the more-tag in my style.css:

    `/* RSS FEED SIDEBAR */

    .more-link {
    display: none;
    }

    /* RSS FEED SIDEBAR END */

    after removing the display: none; – command, the more link showed up

    Sorry, to have bothered you with this. My fault totally. Thanks for your patience, support and questions. They made sure I was able to solve the problem in the end.
    Best from Austria

    So glad to see it resolved! I was sure stumped. ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘more tag not showing’ is closed to new replies.