Forums

how can I insert 4 excerpt's page inside a page? (3 posts)

  1. oldcastle
    Member
    Posted 1 year ago #

    Ok, maybe the title is a little confuse.

    What I would like to achieve is the same what is shown here:
    http://imediautama.com/demo/istudio/

    If you see in the bottom, we have the 2x2 matrix with Dekstop, Web, SEO and Viral Business.

    When you click on "read more", its goes to the respective pages.

    How can I do this?

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    you could use a page template:
    http://codex.wordpress.org/Pages
    http://codex.wordpress.org/Pages#Page_Templates

    in the page template, before the loop, use:
    query_posts
    http://codex.wordpress.org/Function_Reference/query_posts
    http://codex.wordpress.org/Function_Reference/query_posts#Post_.26_Page_Parameters
    (important: use 'post_type' => 'page', apart of the parameters)

    for instance:

    $args = array(
    'posts_per_page' => 4, // optional to overwrite the dashboard setting
    'paged' => $paged,
    'post_type' => 'page',
    'post__in' => array(2,119,155,156)
    );
    query_posts($args); 	?>

    (substitute the page IDs of your four pages)

    if you need help with formatting, report back.

  3. oldcastle
    Member
    Posted 1 year ago #

    Hi.

    Thanks for your reply.

    I took a look at and it's almost what I need.
    The only problem is that I would like something more "automatic". I don't want the user messing with the code to change the IDs.

    If I was showing posts, I would create a category and show posts only from that category. But I need to show pages. So, how can I make this more "user friendly"?

Topic Closed

This topic has been closed to new replies.

About this Topic