• Resolved acub

    (@acub)


    Is there a function to display a custom list of posts on a page, using the same layout used on latest articles page?

    For example, I’d like to list my latest posts on both front page and another page, using the theme’s list of posts layout.

    How would I go about that?

Viewing 5 replies - 16 through 20 (of 20 total)
  • I’m using the latest version of wordpress and trying to implement the first solution but the do_action(‘loop’) seems to be getting just that page’s content rather than the posts. Anyone any idea what the problem could be?

    Thread Starter acub

    (@acub)

    You either missed the initial

    global $wp_query;

    or the

    $wp_query = new WP_query($args);

    What are your args, btw?

    @cobolatre

    Take a look, extracted from tehme′s site HERE:


    Important note for Child Theme users

    The templates and the hook structure have been modified in this version. Check the template files (index.php, header.php, footer.php, comments.php) to adapt your child theme if needed.”
    `

    Thread Starter acub

    (@acub)

    I have made a new topic on this subject, as a how to. The code is simplified a bit and I also explain there how to make templates for custom lists of posts for Customizr.

    I’ll mark this one as resolved as it contains code and solutions that are no more working in the current theme version.

    OK. Thank you! I have not had time to work on this

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘How may display a custom list of posts on a page?’ is closed to new replies.