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.

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)?

share|improve this question

closed as too localized by Michael, Bainternet Aug 17 '12 at 20:51

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

up vote 0 down vote accepted

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-->

                <p>
                    <?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')) {
                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.

share|improve this answer
    
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. –  João Paulo Aug 17 '12 at 20:39
    
Nope that should be put in to index.php file. –  Danny Aug 17 '12 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. –  João Paulo Aug 17 '12 at 20:52
    
Here is an example of my entire index.php file: pastebin.com/F9khFceg –  Danny Aug 17 '12 at 20:57
    
This is my index.php: pastebin.com/Ybb3fnyR –  João Paulo Aug 17 '12 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.

share|improve this answer
    
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? –  João Paulo Aug 17 '12 at 18:07

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