I am totally new here and beginningfrom scratch coding!
I am currently working on this website and especially the right sidebar on the home page.
As you can see, it shows News and Articles and under each of these, the name of the posts and its dates. What I want to add is a third division called Broadsight Magazine, which I achieved to do but it shows the full posts!
How could I just get the name and the date?
I used the following code:
<h3 class="blog-header">magazine"><?php _e("<!--:en-->Broadsight Magazine<!--:--><!--:th-->แมกกาซีน<!--:-->"); ?></h3>
<?php $magazine = array( 'post_type' => 'magazine', 'posts_per_page' => '3', 'order' => 'DESC', 'orderby'=> 'ID' ); $loop = new WP_Query( $magazine ); while ( $loop->have_posts() ) : $loop->the_post(); ?>
<h4>"><?php the_title(); ?></h4>
<?php the_content( __( 'Read the Rest →', 'broadgate' ) ); ?>
<?php endwhile; ?>
Many thanks for your help!