[Resolved] Simple archives page without having a child theme?

Home Forums Support [Resolved] Simple archives page without having a child theme?

Home Forums Support Simple archives page without having a child theme?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #620496
    Jay

    I want to create a simple archives page that is just a list of my categories, a list of months/years, and a list of my (for example) 100 most recent posts.

    Is this possible to do without a child theme?

    Thanks.

    #620715
    Leo
    Staff
    Customer Support

    Hi there,

    Would a plugin like Tom’s WP Show Posts help?
    https://wordpress.org/plugins/wp-show-posts/

    Then you can just create a list and insert them into a static page.

    Let me know πŸ™‚

    #620952
    Jay

    That might work, I’ll test it out.

    Thanks!

    #621212
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    #631051
    Jay

    Just in case anyone comes across this thread looking for a way to create an archives page without using a child theme or plugin or anything else, I just came up with a super easy solution using the new Elements module in GP 1.7.

    1. Create a new page in WordPress (e.g. /archives/).
    2. Add a new GP “hook” element.
    3. Make it something like…

    <h2>Archives By Category:</h2>
    <ul>
    <?php wp_list_categories( 'sort_column=name&title_li=' ); ?>
    </ul>		
    <h2>Archives by Month:</h2>
    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    <h2>Recent Posts:</h2>
    <ul>
    <?php wp_get_archives( 'type=postbypost&limit=100' ); ?>
    </ul>

    4. Set the hook location to after_entry_header.
    5. Check “Execute PHP”
    6. Set the display rule to “Page” and select the /archives/ page you made in step 1.
    7. Save/publish.

    Loving this new Elements functionality, by the way.

    #631153
    Leo
    Staff
    Customer Support

    Thanks for sharing the solution and glad you are enjoying Elements πŸ™‚

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