WordPress.org

Ready to get started?Download WordPress

Forums

Posts shown different in different pages (6 posts)

  1. tastymouse
    Member
    Posted 3 months ago #

    I assign post to two categories. In one category I want to display the full post. In the second category I want to show the title only.
    How can I do this?

  2. esmi
    Forum Moderator
    Posted 3 months ago #

  3. tastymouse
    Member
    Posted 3 months ago #

    I read that, thanks. Bit I don't understand it. It says:
    get_template_part( 'content', get_post_format() );

    Do I have to add a content_new.php and change the above line into:
    get_template_part( 'content_new', get_post_format() ); ?

  4. esmi
    Forum Moderator
    Posted 3 months ago #

    That depends. What theme are you using? Where did you download it from?

  5. tastymouse
    Member
    Posted 3 months ago #

    I'm creating a child-theme under TwentyTwelve.

  6. tastymouse
    Member
    Posted 3 months ago #

    I created a category-agenda.php file that referred to content-agenda.php and removed <?php the_content() ?> from that file. And this did indeed the trick.
    Thanks, Tom

Reply

You must log in to post.

About this Topic