How to get permalink of post based on post name?

Question

Hi I want post permalink like events/post-name not events/?post_type=45

I am using get_permalink(20).

0
MrCoderAndEditor 2 weeks 2022-09-14T10:53:03-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse