WordPress.org

Forums

JBST
In a 'tag' page how to display Content instead of Excerpt? (4 posts)

  1. dimers
    Member
    Posted 12 months ago #

    Hello,
    I updated to JBST theme version 2.1.0 (with WP 3.9.0) and I went to "Appearance > Customize" and under the "Blog Settings" option I have chosen Content in both "Display posts main page" and "Display posts search results" (the default was Excerpt).

    The result is as expected in the main page and search results and the post Content is displayed, but when I go to a tag display page (http://localhost/?tag=MyTag1), the Excerpt is displayed. How can I have Content displayed here on tag pages too? Generally I would like the Content to always display and never the Excerpt.

  2. bassjobsen
    Member
    Theme Author

    Posted 12 months ago #

    Hi @dimers,

    Thanks for posting your issues again. I realize now the tags, categories and taxonomies (see: http://code.tutsplus.com/tutorials/introducing-wordpress-3-custom-taxonomies--net-11658) indeed have the same problem.

    What do you think will be the best solution for this? Should a add:

    "Display posts category list"
    "Display posts tag list"
    "Display posts taxonomy list"

    Or do you have an other idea?

    I will upload a new version after this changes, which also should fix (http://wordpress.org/support/topic/wordpress-39-issue?replies=2).

    To fix this issue now you can create template files for tags and categories (tag.php and category.php), see: https://codex.wordpress.org/Template_Hierarchy

    In this case your tag.php can look as follows:

    <?php
    /*
    Template Name: Tags
    Description: Display tags
    */
    get_header();
    do_action( 'jbst_before_content_page' );
    ?>
    
    <?php while ( have_posts() ) : the_post(); ?>
    <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
    <h1 class="entry-title">
    <?php
    the_title( '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a>' );
    ?>
    </h1>
    <div class="entry-content">
    <?php
    the_content();
    wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'jamedo-bootstrap-start-theme' ), 'after' => '</div>' ) );
    ?>
    </div>
    </article>
    <?php endwhile; ?>
    <?php
    do_action( 'jbst_after_content_page' );
    get_footer();
  3. dimers
    Member
    Posted 12 months ago #

    Hi bassjobsen,
    Thanks for engaging on my comments. Your suggestion to add three more options: "Display posts category list", "Display posts tag list", and "Display posts taxonomy list" is perfect. This will allow me to expose the Content on all pages, and gives users precise control, which is the hallmark of the JBST theme. Excited to see the update.

  4. bassjobsen
    Member
    Theme Author

    Posted 11 months ago #

    Hi @dimers,

    If have add this setting already on GitHub. If you want to test these settings, please download: https://github.com/bassjobsen/jbst/archive/master.zip

    Regards,

    Bass

Reply

You must log in to post.

About this Theme

About this Topic