Forums

Showing full posts on category page (6 posts)

  1. Papousek
    Member
    Posted 1 year ago #

    I would like to be able to show full texts of blog posts on the category pages, rather than just the title of the post. My default posts page, which is called News, shows full posts, but on other category pages, of which there are three, only the titles without even excerpts are shown. So, for some reason the other pages are behaving differently from the default posts page.
    I've tried several plugins which don't do the job, so I guess I should change the the_excerpt() setting to the_content(). Only I haven't a clue where to look - the theme doesn't have any category or archive.php's and the index.php has only this:

    */
    	get_header();
    	get_template_part('library/template_posts');
    	get_footer();
    ?>

    I'm pretty new to this, and all and any help would be greatly appreciated.
    The theme I'm using is Station by Page Lines, and the site is here.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try looking in library/template_posts.php

    http://codex.wordpress.org/Function_Reference/get_template_part

  3. Papousek
    Member
    Posted 1 year ago #

    Thanks, Esmi, but I don't think that's it. However _posts.php looks like it might be the correct place to look. It's just that I'm so new to php that I don't really know what to change there and so far haven't been able to figure it out, only to change the appearance of the post titles or lose them altogether by fiddling with it a bit.
    I don't know if it's ok to post here code this long, hope it is, this is what the _posts.php looks like:

    [Code moderated as per the Forum Rules. Please use the pastebin]

  4. Papousek
    Member
    Posted 1 year ago #

    Sorry, I did select the code in the previous text, but for some reason it didn't work, but turned sections of it into links instead... (?)

  5. MAS
    Member
    Posted 1 year ago #

    Change this line <?php if(pl_show_excerpt($post->ID)):?> with <?php if(pl_show_excerpt($post->ID) && !is_category()):?>

  6. Papousek
    Member
    Posted 1 year ago #

    Thanks chinmoy29, tried that but it's still showing only the titles.

Topic Closed

This topic has been closed to new replies.

About this Topic