Thread Starter
ka1eh
(@ka1eh)
My other topic was closed, but it was not the same question.
Here is my other question:
” I am currently developing a website that contains articles, and articles within those articles.
I was planning to create a Page named Articles, and have the articles set up as posts. Are sub-posts possible? Is there a hack or widget that I would need to install? I would really like to get this issue resolved soon. 🙂
Thank you. ”
Sub-posts aren’t possible but sub-categories are if you’re going down the posts route. If you opt for Pages, you can create sub (child) pages.
On the settings>reading, I changed it so that posts will be posted onto the ‘Articles’ page, and it worked fine, but I also want certain posts on the other page.
You can use query_posts to exclude/include on any posts page.
http://codex.wordpress.org/Template_Tags/query_posts#Exclude_Categories_From_Your_Home_Page
Thread Starter
ka1eh
(@ka1eh)
Okay, I will take a look at those links.
Thank you so much esmi for being so helpful on these threads. 🙂
Thread Starter
ka1eh
(@ka1eh)
So, I have to create my own theme to be able to put certain posts on certain pages?
Or are themes and templates different?
Thread Starter
ka1eh
(@ka1eh)
[ sorry for triple posting. ]
Here is what my index.php looks like.
I want to exclude categories 1,3,5,and 7.
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>
<?php
if (is_home()) {
query_posts("cat=-1,-3,-5,-7");
}
?>
Is this right?
Thanks for any help.
So, I have to create my own theme to be able to put certain posts on certain pages?
Yes. Or modify an existing theme – which might be a lot less work.
Is this right?
It looks OK.
Have you read http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website ?
yes, I need this feature too..
I hope this will be added in the future development…
Hi.. finally…
i have created a WordPress Sub Post Plugins,
here is the link http://takien.com/550/wordpress-plugin-wp-sub-post.php
that’s beta version…