Home › Forums › Front-end Issues › Lists not showing bullets
I have made an ekstra field for my categories, to show an ekstra description below my posts. But if i make lists with bullets, then the bullets are not showing. What could be wrong?
It works fine in all posts and pages.
Please can you share your code? It’s possible you may be escaping the HTML so may remove the formatting
What code should i share? The one i have insertet in my category?
You will need to share the code that outputs/displays your extra field you’ve created.
<div class="cat-extra-dis">
<?php
$queried_object = get_queried_object();
$taxonomy = $queried_object->taxonomy;
$term_id = $queried_object->term_id;
the_field('tekst_under_posts', $taxonomy . '_' . $term_id);
?>
</div>
<!-- /.cat-extra-dis -->
Hmm, nothing wrong with the code.
What is the field type? I assume a WYSIWYG field?
Do you have any CSS overriding the styling?
If you inspect the list with the browser tools, does it output as HTML UL and LI?
It does output the UL and LI. But i can see that is also output list-style-type: none;
I don´t know that comes from, because it works fine on the rest of the website, where i use elementor.
Ahh my website is also listing the post with UL and LI. I try to change the List-style-type from none to square, and the kind of work. But then there are squares next to the posts also, which is not good.
Tahe a look at https://oplevelser.search-more.dk/mad-drikke/vinsmagning/
In which case, you need to target just that code with CSS.
Something like:
.cat-extra-dis ul {
list-style: circle;
}
And remove the other CSS change you made. See if that works
You must be logged in to reply to this topic.
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.