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

  1. dimers
    Posted 2 years ago #

    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
    Theme Author

    Posted 2 years 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:

    Template Name: Tags
    Description: Display tags
    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">
    the_title( '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a>' );
    <div class="entry-content">
    wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'jamedo-bootstrap-start-theme' ), 'after' => '</div>' ) );
    <?php endwhile; ?>
    do_action( 'jbst_after_content_page' );
  3. dimers
    Posted 2 years 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
    Theme Author

    Posted 2 years 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



Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic