• What’s up guys, this should be an easy answer for you guys, I’m still new to WordPress really.

    When a user is viewing a category from my blog the template I’m using shows the thumbnail, title, read more button and a few characters from the post. But, what I want is to show the whole post and no thumbnail.

    We plan on posting a lot of video posts and don’t want people to have to click on the title to watch the video. Here is a link to show you guys what I’m talking about:

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • have you used the forum search?

    there should be plenty of topics answering your question.

    for instance, have you tried to look into the category.php template (or archive.php) and checked if the theme uses the_excerpt() ?
    if so, replace it with the_content().

    https://codex.www.ads-software.com/Function_Reference/the_excerpt

    the thumbnail code is probably a line with: the_post_thumbnail() which you could remove.

    Thread Starter Hayezb

    (@hayezb)

    Yes I have, and I forgot to mention that there is no the_excerpt() or the_content() function on my archive.php and category.php isn’t showing up under Editor.

    *Just checked the category.php file and it does not either.

    can you paste the full code of category.php into a https://pastebin.com/ and post the link to it here?

    https://codex.www.ads-software.com/Forum_Welcome#Posting_Code

    Thread Starter Hayezb

    (@hayezb)

    No problem, here ya go: https://pastebin.com/rjFSP8m6

    it looks as if you got the wrong file (one of the core files);

    have a look in your theme’s folder, and see if there is a category.php at this location:

    https://www.yoursite.com/wp-content/themes/myband/category.php

    or goto dashboard -> appearance -> editor and see if there is a category.php in the list on the right.

    What does it say in archive.php?

    Some themes call a special loop.php file or even loop-*.php file and it’s in there that you find the calls you want.

    For example, twenty ten does this in archive.php:

    get_template_part( 'loop', 'archive' );

    Which tells WP to use loop-archive.php is it exists or loop.php if it doesn’t. By default it doesn’t, so WP uses loop.php, which says (for example):

    <?php if ( is_archive() || is_search() ) : ?>
      <div class="entry-summary">
        <?php the_excerpt(); ?>
      </div><!-- .entry-summary -->
    <?php else : ?>
      <div class="entry-content">
        <?php the_content( __( 'Continue reading <span class="meta-nav">
                               &rarr;</span>', 'twentyten' ) ); ?>
        <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ),
                                    'after' => '</div>' ) ); ?>
    			</div><!-- .entry-content -->
    <?php endif; ?>

    HTH

    PAE

    Thread Starter Hayezb

    (@hayezb)

    There is no category.php w/ the theme I’m using ( MyBandTheme Script ). Which I thought was weird…

    Here is a link to the archive.php : https://pastebin.com/kKcaDybQ

    There is no category.php w/ the theme I’m using

    In that case, the theme will fall back to using archive.php. If you want these changes in your category pages only, then I’d suggest copying archive.php and naming the new file category.php. Also copy includes/music.php and rename the new file includes/cat-music.php. Most of the changes that you need to make will be in includes/cat-music.php.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Show Entire Post’ is closed to new replies.