Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    17
    Member #
    25596
    I have some of my main links on my navigation linking straight to category pages so they can view recent posts for that category.

    Is there any way to insert some sort of plugin with shortcode or something where I can add latest posts from a category onto a specific page.

    Ideally I would like to have different pages with ads specific to that page and a description of the page but also include the latest posts...

    thanks

  2.  

  3. #2
    Banned
    Join Date
    Jan 2013
    Posts
    10
    Member #
    34731
    For the specified page you can create a new page template and specify the pages to use in the posts query.For example this will only show post from category id 11.
    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    //$sticky=get_option('sticky_posts');
    $args=array(
    'cat'=>'11',
    'caller_get_posts'=>1,
    'posts_per_page'=>10,
    'paged'=>$paged,
    );
    query_posts($args);

    ?>
    <?php if (have_posts()) : ?>


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:24 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com