In GenesisWP Slack chat, a user asked:
I've been searching for a simple way to do this and am stumped. In a CPT archive page I’d like to create a wrapper div around only the looped posts and not include the pagination, of the form;
<main class="content" id="genesis-content">
<div id="my-wrapper">
<article>...</article> looped etc ...
</div>
<div class="archive-pagination pagination">...</div>
any pointers most welcomed
There might be times when you want the list of all posts on archives in a container without the archive pagination included.
Before:
After:
Simply add the following in the appropriate template file like say, archive-portfolio.php
(while ensuring there's an opening PHP tag and closing genesis() function call):
To view the full content, please sign up for the membership.
Already a member? Log in below or here.