I want to create an archive page that display's the posts in this order:
post_title | post_date | post_category
Offcourse this should be clickable that links to the post or if you click on a category than it should link to a category
What do I have so far:
$args = array(
'post_type' => 'post'
);
$post_query = new WP_Query($args);
if($post_query->have_posts() ) {
while($post_query->have_posts() ) {
$post_query->the_post();
?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Link naar <?php the_title_attribute(); ?>"><?php the_title(); ?></a> | <?php the_date();?> | <?php get_the_category;?></h2>
<?php
}
}
?>
I know that "the_permalink()" gives me the link to post and "the_title" gives me the title.
This code only shows the last 10 posts instead of the 3000.
Another problem is that the date only shows up on 2 of the 10 posts.
The category just doesn't show up at all.
This is the first time i'm trying to really work with wordpress and perhaps i'm really doing it the wrong way so I hope you all can help me out. Thank in advance.