Frank1100
Member
Posted 11 months ago #
Hi, my welcome post needs a <more ...> which is not cutting off the post on the home page, but will cut off in category or tag pages ...
Right now when I put a <more ...>, then the welcome post is cut off also on the home page ... but I like to show it full text on the home page.
Is there any trick to achieve that ?
Regards,
Frank
read:
http://codex.wordpress.org/Customizing_the_Read_More#More_about_.24more
depending on your theme's structure, you might need to combine this with a conditional statement using is_home() ...
Frank1100
Member
Posted 11 months ago #
thx for your reply. understand, but is to high for me as a non programmer
there is the hidden hint in my reply that you are allowed to post the name and download link of your theme (only free GPL themes are supported here).
is your 'welcome post' marked as a sticky post or simply the latest post, i.e. the first post on the home page?
Frank1100
Member
Posted 11 months ago #
ah ok, the theme is the free Mystique from http://digitalnature.eu/docs/
My welcome post is the only sticky post I have.
in teaser.php
try and change:
<div class="post-content clear-block">
<?php the_content(); ?>
</div>
to:
<div class="post-content clear-block">
<?php if( is_home() && is_sticky() ) :
$more == -1;
the_content();
$more = 0;
else :
the_content();
endif; ?>
</div>
Frank1100
Member
Posted 11 months ago #
thx a lot. I replaced it, but it still brings the <more> on the home page yet ...
http://my.jetscreenshot.com/10418/20120604-aixk-71kb.jpg
try this corrected version:
<div class="post-content clear-block">
<?php if( is_home() && is_sticky() ) :
global $more; $more = -1;
the_content();
$more = 0;
else :
the_content();
endif; ?>
</div>
Frank1100
Member
Posted 11 months ago #
whow it works !
thx that is a great help.