• alidot5ive

    (@alidot5ive)


    Hi Everyone

    My front page template looks like

    //First Part
    <?php
    the_post();
    the_content();
    ?>
    
    //Second Part
    <?php
    $page_id =41;
    $page_data = get_page( $page_id );
    $content = $page_data->post_content;
    $title = $page_data->post_title;
    ?> 
    
    <h1><?php echo $title ?></h1>
    <?php echo $content;?>

    First part is related to page I want to show on my home page and its working very fine as per my requirements

    But on Second Part I am having trouble to show teaser for some other page and its read more link … right now second part showing full text of the other page

    Please help me out … thanks in advance

    Regards,
    Ali

Viewing 1 replies (of 1 total)
  • vtxyzzy

    (@vtxyzzy)

    Give this a try:

    <?php echo apply_filters('the_content',$content); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Front Page Template Read More for other pages’ is closed to new replies.