Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Without any checks, your problem is solved stupidly in css.
A well-built output of a record in a loop looks like this
<article id="post-<?php echo $post->ID; ?>" <?php post_class(); ?>>
// содержимое записи
</article>
article.category-foo:before {
width: 30px;
height: 30px;
content: ' ';
background-image: url('%img-url%');
display: block;
position: absolute;
top: -25px;
left: -25px;
}
Please check before submitting to a category. ( https://wordpress.org/support/topic/code-to-show-i...
Further through CSS.
I would like to see the code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question