Beste allemaal,
Voordat ik wat post probeer ik het eerst altijd even een antwoord te googelen, ik heb dus exact dezelfde vraag gevonden als die ik heb maar er stond helaas geen antwoord bij terwijl het 6 maanden geleden al gepost is. Dit was de post die er stond:
I've a question about integrating WordPress to my site. My site is snip. This is a site for a dance academy in Spain (Denia). I would like to make a News page to put latest news. In this News page I would like to show the latest 10 posts.
The code I'm using now is:
<div style="overflow: auto;">
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php twentyeleven_content_nav( 'nav-below' ); ?>
</div>
I copied this code from somewhere in the internet, but I have no idea how it works.
This code returns the latest articles, but I believe that this code returns all posts, not only the latest 10. It also gives the posibility of replying the post, but for the beginning I would like to get rid of this possibility. (It's a link with "Dejar una respuesta", that means "Replie this article" in Spanish.)
The way I would like to show the posts is:
- Picture
- Title (With author and date)
- Post
`
And is there a possibility to put css code on each element. For example: <span style="...">Title</span> or <span style="...">Post</span>
I hope there's a solution for this. (The site has to be finished tomorrow so I hope there's somebody who knows how to solve it...)
Thanks in advance!!
Mijn vraag is dus nu, ik heb een website met Wordpress als CMS er in geïntegreerd. Ik krijg nu wel posts te zien maar niet de <span style=""> en ook niet de image bij de post. Hoe krijg ik deze er wel bij in plaats van <p> Tekst </p> wat ik nu krijg.
Alvast super bedankt voor je eventuele hulp!
Vriendelijke groet,
Bruce
Voordat ik wat post probeer ik het eerst altijd even een antwoord te googelen, ik heb dus exact dezelfde vraag gevonden als die ik heb maar er stond helaas geen antwoord bij terwijl het 6 maanden geleden al gepost is. Dit was de post die er stond:
I've a question about integrating WordPress to my site. My site is snip. This is a site for a dance academy in Spain (Denia). I would like to make a News page to put latest news. In this News page I would like to show the latest 10 posts.
The code I'm using now is:
<div style="overflow: auto;">
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php twentyeleven_content_nav( 'nav-below' ); ?>
</div>
I copied this code from somewhere in the internet, but I have no idea how it works.
This code returns the latest articles, but I believe that this code returns all posts, not only the latest 10. It also gives the posibility of replying the post, but for the beginning I would like to get rid of this possibility. (It's a link with "Dejar una respuesta", that means "Replie this article" in Spanish.)
The way I would like to show the posts is:
- Picture
- Title (With author and date)
- Post
`
And is there a possibility to put css code on each element. For example: <span style="...">Title</span> or <span style="...">Post</span>
I hope there's a solution for this. (The site has to be finished tomorrow so I hope there's somebody who knows how to solve it...)
Thanks in advance!!
Mijn vraag is dus nu, ik heb een website met Wordpress als CMS er in geïntegreerd. Ik krijg nu wel posts te zien maar niet de <span style=""> en ook niet de image bij de post. Hoe krijg ik deze er wel bij in plaats van <p> Tekst </p> wat ik nu krijg.
Alvast super bedankt voor je eventuele hulp!
Vriendelijke groet,
Bruce
[ Voor 0% gewijzigd door BtM909 op 17-02-2014 14:41 ]