Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #384093

    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?

    • This topic was modified 9 years, 10 months ago by earthdog.
    #384169

    Hi!

    Use a Magazine (Content Elements) element.

    Regards,
    Josue

    #384236

    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>
    #384267

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.