Y
Y
Ysery2020-05-05 10:10:54
WordPress
Ysery, 2020-05-05 10:10:54

How to enter correctly in php?

Good day, the question is about WordPress
As I understand it, this line excludes the current open post in WordPress. And how to add more specific posts to it that should not be displayed? For example, with id 12 and 17.
'post__not_in' => array($post->ID),

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2020-05-05
@New_Horizons

'post__not_in' => array($post->ID, 12, 17),
mb so)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question