Support » Plugin: Add Posts to Pages » Show more than the headline of the post

  • Hey Arsham, Thank you so much for this tutorial! I have been going out of my mind trying to figure out at way to do this – and there it was! Everything is working successfully, BUT I only see the headlines of the posts. I did everything right, but I can’t seem to figure out how to make it work so that – if not the whole post. then a good part of it – is showing. My stories-page.php looks like this:

    <?php /* Template Name: Stories */ ?>
    * The template for displaying all pages
    * This is the template that displays all pages by default.
    * Please note that this is the WordPress construct of pages and that
    * other ‘pages’ on your WordPress site will use a different template.
    * @package WordPress
    * @subpackage Twenty_Fourteen
    * @since Twenty Fourteen 1.0

    get_header(); ?>
    <div id=”main-content” class=”main-content”>
    if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
    // Include the featured content template.
    get_template_part( ‘featured-content’ );
    <div id=”primary” class=”content-area”>
    <div id=”content” class=”site-content” role=”main”>
    // Start the Loop.
    while ( have_posts() ) : the_post();
    // Include the page content template.
    get_template_part( ‘content’, ‘page’ );
    // If comments are open or we have at least one comment, load up the comment template.
    if ( comments_open() || get_comments_number() ) {
    global $more;
    $more = 0;
    if(have_posts()) : while(have_posts()) : the_post();
    “><?php the_title( ‘<h3>’, ‘</h3>’ ); ?>

    </div><!– #content –>
    </div><!– #primary –>
    <?php get_sidebar( ‘content’ ); ?>
    </div><!– #main-content –>

    SO!!! Where to and how to make changes??!!
    I really hope you will help me, thank you so much!
    AND: do I need to put anything on the page, that shows the posts, fx [ add_posts category=nyheder tag=nyheder show=5 h=2 full=true readmore=false img=true] (without the extra space added 😉 )

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Show more than the headline of the post’ is closed to new replies.