WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] NexGEN and Category Posts

[Resolved] NexGEN and Category Posts

  • Here is my predicament: I want to mix the display of Posts from a category with a NexGEN Album.

    I can create a Category Template or a WordPress Page Template.

    I just don’t know how to call a NexGEN Album (WordPress syntax:[album=1,extend]) in a Category Template or how to display posts from a category in a WordPress Page Template.

    reason being, I want the last 3 posts in that category to display followed by the NexGEN Album content.

    Help Please!

Viewing 1 replies (of 1 total)
  • I solved this myself by creating a custom template for my page and inserting this code:

    <?php
    $lastposts = get_posts('numberposts=3&category=7');
    
    foreach($lastposts as $post) :
        setup_postdata($post);
        ?>
        <a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a>
        <?php the_content(); ?>
    <?php endforeach; ?>

    This will show the last 3 posts of category ID 7

    EDIT: oh yea, and before The Loop

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] NexGEN and Category Posts’ is closed to new replies.
Skip to toolbar