Call different sets of subpage content in wordpress

Posted on 2010-01-07
Last Modified: 2012-06-22
I am a beginner at wordpress, but do know a fair deal of PHP.

I have a three column table on a custom wordpress layout.

What I would like to do is "call" subpage content into each column, however each column needs to have subpages content from three different pages (news, projects, other) outside of this page (the index).

I also need to know if it's possible to call certain parts of the subpage, IE the name, tags (via a custom field "description"), and first comment data.

does anyone know of a plugin, or have a written function, that can do this functionality?
Question by:Eroots
    LVL 4

    Expert Comment


    Accepted Solution

    not really, but I was able to find what I needed by:

    1) Changing from a static page tree structure to using posts with categories

    2) Installing the exec-PHP plugin

    3) Calling the following PHP code:

    <?php query_posts('category_name=CATEGORYNAME&showposts=POSTLIMIT'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php the_title(); ?><br /><?php the_excerpt(); ?>
    <?php endwhile;?>

    This has given me what I need

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    WordPress is constantly evolving, and with each evolution appears to get better and better.  One of the big drawbacks prior to version 3 was that there was no way to be able to set up a custom menu from the backend. The Old Way Adding menus is…
    So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
    The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
    The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now