Home › Forums › General Issues › Post Object help › Reply To: Post Object help
This can be done just through the stylesheet. So say for example you have the following in your archive file:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="entry-content">
Content outputting here...
</div>
<?php endwhile; ?>
<?php endif; ?>
I believe each element should be wrapped in something already, like a <div>
or <article>
or similar. You’ll just target that with your CSS and make it two-columns. So for the example snippet above you’d probably have some CSS like:
.archive-employees .entry-content {
float: left;
width: 50%;
}
That .archive-employees
bit is whatever class is currently on the <body>
element on your archive page. Might need some tweaking but that’s the general idea.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.