1
I found a way to display the Wordpress articles with the following code.
<ul>
<?php
$recent = new WP_Query("cat=3&showposts=5");
while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
The complete tutorial is found here. I had already found a script for Blogger, but it does not work in Wordpress.
In the tutorial also has this other code that is to show the post image.
<a href=""><img src="/timthumb.php?src=&h=60&w=60&zc=1" title="Clique para ler: " alt="" class="recent-posts-thumb" width="60px" height="60px" />
The goal is to show a page with articles from a given article: Category or tag. And thus manage to organize them better.
The name of that code would be a hack Read more. What I would like is to show specific articles with a short summary of the post on a page.
Please, check out http://answall.com/editing-help . . . . When you edit here on [pt.so] you have a box of preview below, you can see clearly that the code is not appearing.
– brasofilo
I add the normal html, but it doesn’t appear, keeps cutting several parts.
– Endou
Check out my edition to see how to format here in SOPT: http://answall.com/posts/30997/revisions. . . I suggest you install a spell checker in your browser, it greatly decreases the work of editors.
– brasofilo
PS: I formatted the code to be readable, all in one line is just not cool for understanding... But checking now I see that there is no difference in the first two blocks of code. Can [Edit] your question and clarify this?+
– brasofilo
I removed the block that was equal to the first.
– Endou
There was a bug in the code of the plugin, I fixed. It came to test some of the solutions?
– brasofilo