Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Call different sets of subpage content in wordpress

Posted on 2010-01-07
Medium Priority
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

Expert Comment

ID: 26211825

Accepted Solution

Eroots earned 0 total points
ID: 26212084
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SEO can be a real minefield to navigate, but there are three simple ways to up your SEO game just be re-assessing your content output.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
Suggested Courses

572 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