Edit permalinks WordPress

Question

I need help with this issue (custom permalink).

I need change permalinks.

post_code custom filed inside posts

if post_code exist them make the peramlinks like this

/%category%/%year%/%monthnum%/%day%/%post_code%/%postname%/

else do this

/%category%/%year%/%monthnum%/%day%/%post_id%/%postname%/

Note: I don’t want to use plugins

0
Huthaifa Majaydeh 4 months 0 Answers 10 views 0

Leave an answer