• Vignesh

    (@vignesh568)


    <?php
    if( is_home() && get_option(‘page_for_posts’) ) {
    $blog_page_id = get_option(‘page_for_posts’);
    echo ‘<h1>’.get_page($blog_page_id)->post_title.'</h1>’;
    }
    ?>
    i placed the above code in the content.php

    it display page title before all post title

  • The topic ‘how to diplay page title in a blog plog’ is closed to new replies.