Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to have a domain.com/blog page that includes all of my blog posts.

Problem is that currently to get to my blog, it looks like the permalink is going to always be...

domain/category/categoryname

I can change the permalinks but I dont want it to be something like domain.com/blog/featured or something.

I want to have a page that is domain/blog which will show all of my blog posts. Is there a way to do this?

My thought is simply creating a Page that includes all of my posts. How would I do this?

Thanks!

share|improve this question
    
@jas225 - What's the URL of your blog so we can visually your issue? –  MikeSchinkel Sep 3 '10 at 2:05
add comment

4 Answers

Create an empty page with blog as title.

Go to Settings -> Reading and choose a static page under Front page displays. Now set the posts page to blog that you just created and set a page that you prefer as frontpage.

I hope this whas what you were asking about, if not just let me know.

share|improve this answer
    
Not sure this will work as planned with my theme. Right now I'm just redirecting a static page with nothing on it using a redirect plugin to the category/blog page. –  jim_shook Sep 3 '10 at 0:17
    
What about going to settings -> general and change your site adress to domain/blog? –  Patrik Sep 4 '10 at 8:36
    
@Patrik I think you just described on how to create a static frontpage: codex.wordpress.org/Creating_a_Static_Front_Page - That's not what jas225 was asking for. –  hakre Sep 4 '10 at 17:21
add comment

It is very possible. In my limited experience it is driven by the theme you choose. Many themes will have a page type you can select(single post, multipost, static, archive). This way you can determine which pages have your blog posts and which do not. You can then use the permalink settings to drive the final piece of the puzzle. I would encourage you to look at different themes and evaluate what works for your site. The one I use and have found flexible in this area is Atahualpa from http://wordpress.bytesforall.com/.

MM/RC

share|improve this answer
    
I'm using a Wootheme called OverEasy and they dont seem to have page templates for my purposes, but thanks for the tip –  jim_shook Sep 3 '10 at 0:11
add comment

You can try the plugin List Category Posts

This plugin allows you to list posts from a category (or categories) into a post/page using the [catlist] shortcode. You can list posts including a tag or tags also.

share|improve this answer
add comment

Why not create a shortcode?

Add the following code to your functions.php and then in your page you can add a loop with various filters

Example shortcode to put in your page: [loop the_query="showposts=10&cat=4"]

function sp_loop_shortcode($atts) {

   // Defaults
   extract(shortcode_atts(array(
      "the_query" => ''
   ), $atts));

   // de-funkify query
   $the_query = preg_replace('~&#x0*([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $the_query);
   $the_query = preg_replace('~&#0*([0-9]+);~e', 'chr(\\1)', $the_query);

   // query is made               
   query_posts($the_query);

   // Reset and setup variables
   $output = '';
   $temp_title = '';
   $temp_link = '';

   // the loop
   if (have_posts()) : while (have_posts()) : the_post();

      $temp_title = get_the_title($post->ID);
      $temp_link = get_permalink($post->ID);

      // output all findings - CUSTOMIZE TO YOUR LIKING
      $output .= "<li><a href='$temp_link'>$temp_title</a></li>";

   endwhile; else:

      $output .= "nothing found.";

   endif;

   wp_reset_query();
   return $output;

}
add_shortcode("loop", "sp_loop_shortcode");

I have used this method successfully on my sites.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.