M
M
makepuff3222020-08-26 11:32:28
WordPress
makepuff322, 2020-08-26 11:32:28

How to add category filtering to a wordpress post?

I need a filter to display post categories, through id or category labels, for example, only categories with id 1,2,3 are needed, and the remaining 50 pieces are not needed, help me add a filter pls

<?php the_terms( $post->ID, 'companycatalog-category', ' <strong>Категория:</strong> ', ' ',' ' ); ?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Julia Starchenko, 2015-06-23
@Lorema

if you set the property background-size: cover , the image will be scaled to fit the size of the block.
do not use tens of br, for positioning there are such properties as margin (outer padding) and padding (inner), absolute positioning or pseudo-tables ( display: table-cell; vertical-align: bottom; )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question