I need to do a simple thing.
I have a category named latest news.
I need to make them appear in my frontpage. My frontpage is a 3 column format.
I want just to create something like this:
22/01/2015
Amazing save by spiderman
21/01/2015
Superman in the hospital
and so on…. and i need this to be clickable and when the user clicks to take him to the post page…
Can someone guide me? Is this provided by enfold or not?
Hi!
Use a Magazine (Content Elements) element.
Regards,
Josue
this is kinda of what i am looking, but what if i want to customize this?
I mean generally if i want to add something like this somewhere, what are my options? I want to avoid putting php code directly in my page
<h2>Recent Posts</h2>
<ul>
<?php
$recent_posts = wp_get_recent_posts();
foreach( $recent_posts as $recent ){
echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a> </li> ';
}
?>
</ul>
Hey!
If you want to go for that approach i’d suggest putting that on a Shortcode, you can generate one here:
http://generatewp.com/shortcodes/
Cheers!
Josue