Important Note


We have shifted our support forum with more advance feature, So if you are Pro buyer at InkThemes.com, Do ask all your support queries at http://www.inkthemes.com/community



InkThemes Support Forum » Cloriato Theme

2 blog pages?

(4 posts)
  1. mozq1to
    Member

    Member
    Joined: Jun 2012
    Posts: 9

    Im wondering if its possible to have 2 blog pages, like 1 Project and 1 News. Im thinking that if i make one more blog template page(blog2.php) and then i separate the posts through Category ID.

    So the Project blog only show posts that have the Project category and the News blog show posts with the News category. Is this possible?

    Im aware that i have to change the code in blog.php and my question is, where in the code can i call for posts with a specific category id?

    Thanks in advance.

    Posted 11 months ago #
  2. mozq1to
    Member

    Member
    Joined: Jun 2012
    Posts: 9

    Im guessing that i have to add one more 'if query' in the following code that says something like if post_category = 8 then....

    <!--Start Content-->
    <div class="content">
    <?php //if (function_exists('inkthemes_breadcrumbs')) inkthemes_breadcrumbs(); ?>
    <!-- Start the Loop. -->
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <!--Start Post-->

    Posted 11 months ago #
  3. Harmeet
    Support Staff

    Support Staff
    Joined: Dec 2011
    Posts: 1,794

    You can't make two blog page because you have to select the "blog page template" while creating the page and then both the page will show the same post.

    Thanks.

    Posted 11 months ago #
  4. mozq1to
    Member

    Member
    Joined: Jun 2012
    Posts: 9

    Then what about my 2nd post? If i added an if query that asks if the category id is equal 8 then send the posts to the news page else show them on the current page.

    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.