WordPress.org

Ready to get started?Download WordPress

Forums

Special for Welcome Post ... (9 posts)

  1. Frank1100
    Member
    Posted 2 years 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

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    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() ...

  3. Frank1100
    Member
    Posted 2 years ago #

    thx for your reply. understand, but is to high for me as a non programmer

  4. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    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?

  5. Frank1100
    Member
    Posted 2 years ago #

    ah ok, the theme is the free Mystique from http://digitalnature.eu/docs/
    My welcome post is the only sticky post I have.

  6. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    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>
  7. Frank1100
    Member
    Posted 2 years 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

  8. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    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>
  9. Frank1100
    Member
    Posted 2 years ago #

    whow it works !

    thx that is a great help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags