Display full image posts in a specific category

January 2012 WordPress Theme
GK User
Mon Sep 01, 2014 3:29 pm
Hello,

I have an issue with one of my categories. Normally when clicking a category on the homepage, it will go to a new page displaying a list of posts with a short summary and thumbnail image. How can I create a category where full image posts are displayed for only that specific category?
Here is my one of categories as it is now : http://www.gamemoth.com/category/articles/ps4/.

How do I choose for only one specific category to display like this page? http://www.gamingme.me/category/memes/

Thank you! Im new to wordpress.
User avatar
Fresh Boarder

GK User
Tue Sep 02, 2014 6:58 am
Hello,

I'm not sure if I understood correctly, but on this page - http://www.gamemoth.com/category/articles/ps4/ it's default layout for categories (images on the left). If you want to change the layout, you have to change css and some php code.
User avatar
Moderator

GK User
Tue Sep 02, 2014 10:10 am
Im sorry If I wasn't clear. Basically, I want create a blog category section on my site. I want that page to display full posts as the users scrolls down the page, like a normal blog that shows full posts and older posts as the scroll down. How would I go about this?
User avatar
Fresh Boarder

GK User
Tue Sep 02, 2014 10:24 am
Now I understand, please check this solution:

http://wordpress.stackexchange.com/ques ... egory-only

You should add this condition into Game/content-archive.php file.
User avatar
Moderator

GK User
Tue Sep 02, 2014 12:08 pm
I have opened the content-archive.php, but I am unsure where to place the condition within the code. I have tried myself but have experienced strange output when testing the page which means I have placed it in the wrong section.
User avatar
Fresh Boarder

GK User
Tue Sep 02, 2014 12:35 pm
Update. After trial and error, I somewhat got the desired result. I'm still not sure that I placed the condition correctly in the content-archive.php file, but the page now looks like this :http://www.gamemoth.com/category/memes/

The titles are all shifted to the left and below the post. Did this occur because I placed the code wrong? How do I place the titles above the image post?
User avatar
Fresh Boarder

GK User
Tue Sep 02, 2014 9:36 pm
Around line 56, change the condition into:

Code: Select all
<?php if ( !in_category( 'your_category_slug') || is_search() || is_tag() ) : ?>
   
      <section class="summary">
         <?php the_excerpt(); ?>
      </section>
      <?php else : ?>
      <section class="content">
         <?php the_content( __( 'Read more', GKTPLNAME ) ); ?>
         
         <?php gk_post_fields(); ?>
         <?php gk_post_links(); ?>
      </section>
      <?php endif; ?>
User avatar
Moderator

GK User
Wed Sep 03, 2014 1:36 pm
Thank you Piotr! It solved the issue. It looks great! :D
User avatar
Fresh Boarder


cron