Using Wordpress "Template" feature to have "Posts" in "Pages"
Hi- long time Joomla user, now in Wordpress and there's one feature Joomla does out of the box that Wordpress doesn't:
Short story: I want a blogroll in a page. Why? Because I want a tidy "page" URL "example.com/blog/" -- as opposed to a "category posts" URL: "example.com/category/blog/"
Long story: I'm using the Wordpress "Template" feature (NOT theme, "Template") to have a "category of posts" in a "page". In other words, I want to have a "page", with a "category of posts" below the Page content. The Codex suggests to copy your index.php file when creating a "template.php" file, but I know YooTheme has a unique index.php file thanks to Warp. Here's the code I'm using, which ONLY displays the "category of posts" without ANY "Page content" (and if you share the page on Facebook the page's thumbnail or info doesn't display):
<?php
/*
Template Name: Template
*/
?>
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('cat=9&showposts=0'.'&paged='.$paged);
?>
<?php
$warp =& Warp::getInstance();
echo $warp->template->render('template');
What will my template.php file look like if I'm supposed to use the index.php file to create my template file to have category posts display in a page below the page's content?
Edited
