Here's the WP wordpress website: http://www.joaoalexandre.com/wordpressteste/

And here's the Blog section: http://www.joaoalexandre.com/wordpressteste/artigos/

How can I show a regular simple blog with posts and maybe categories and get rid of the extra garbage it currently has (slider, "Services" etc)?

I suppose the answer lies in creating a new template for this "Artigos" page (which is the blog)?

2 Answers 2


This may be what your looking for: `

            <div class="blog-post">

                <?php static $count = 0; if ($count == "4") { break; } else { ?>                

                <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>

                <ul class="meta">
                    <li><?php the_time(get_option('date_format')); ?></li>
                    <li>| </li>
                    <li><span>Posted By</span> <?php the_author_posts_link(); ?></li>
                    <li>| </li>
                    <li><a href="#"><?php comments_number('No comments yet','1 comment','% comments')?></a></li>
                </ul><!--end of meta-->

                    <?php echo substr(strip_tags($post->post_content), 0, 350);?>
                    ...&nbsp;<a href="<?php the_permalink() ?>" class="readMore">Read More.</a>
                </p><!-- Display a maximum of 350 characters from the blog post -->                                             

                <?php $count ; } ?>                                   

            </div><!--end of blog-post-->

            <?php endwhile; ?>

            <?php endif; ?>     

            <?php if(function_exists('wp_paginate')) {
            } ?> `

very simple to pull 4 blog posts per page limited by characters (350). Just make sure in Wordpress Reading settings you have a set home page and a set blog page.

  • is that put into the template the Page is assigned to? I did just that. I assigned the Page "Artigos" to a fullwidthblog.php template with that code in it, but it's still the same. Btw I have removed the slider finally. Aug 17, 2012 at 20:39
  • Nope that should be put in to index.php file.
    – Danny
    Aug 17, 2012 at 20:43
  • Gives me an error when I put it there. I would put the code in but I can't format it in these comments. Aug 17, 2012 at 20:52
  • Here is an example of my entire index.php file: pastebin.com/F9khFceg
    – Danny
    Aug 17, 2012 at 20:57
  • This is my index.php: pastebin.com/Ybb3fnyR Aug 17, 2012 at 20:59

You dont mentioned clearly about your blog section. If artigos is a page, you can use a page template. Hope this will be useful to you to create a page template.

If your blog section is a category then you should create a category template.

  • Lakshmanan, I can create a page template for it (and choose the template when creating/editing the page), I just don't know what to put in the page template to make it work as a simple blog without the extra fillings it has currently. how could I do that? Aug 17, 2012 at 18:07

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