WordPress.org

Forums

Add Posts to Pages
Show more than the headline of the post (2 posts)

  1. Naervaer23
    Member
    Posted 1 year ago #

    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 */ ?>
    <?php
    /**
    * 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">
    <?php
    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">
    <?php
    // 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() ) {
    comments_template();
    }
    endwhile;
    ?>
    <?php
    global $more;
    $more = 0;
    query_posts('cat=6');
    if(have_posts()) : while(have_posts()) : the_post();
    ?>
    "><?php the_title( '<h3>', '</h3>' ); ?>
    <?php

    endwhile;
    endif;
    wp_reset_query();
    ?>
    </div><!-- #content -->
    </div><!-- #primary -->
    <?php get_sidebar( 'content' ); ?>
    </div><!-- #main-content -->
    <?php
    get_sidebar();
    get_footer();

    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 ;-) )

    https://wordpress.org/plugins/add-posts-to-pages/

  2. Arsham Mirshah
    Member
    Plugin Author

    Posted 1 year ago #

    Hello - try using the "read more" or "full text" option of the plugin.. documentation here:

    http://www.webmechanix.com/wordpress-plugins/add-posts-pages/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Add Posts to Pages
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic