• Resolved elfigos

    (@elfigos)


    Hello, I’m using permalink manager pro, how can I set a custom post type permalink based on custom fields values.

    Example: two custom fields: A and B

    if(empty(A)) return B;
    else if(empty(B)) return B;
    
    return post_title;

    I tried with permalink_manager_filter_default_post_uri but it’s no use. This hook only works when updating posts but not working when creating new posts because it’s fired many times before all custom posts/post meta are updated。

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @elfigos,

    Please contact me directly via email (contact /at/ maciejbis.net) with more details on how the new posts with custom fields are created.

    This forum is dedicated for Permalink Lite users.

    Best regards,
    Maciej

    Thread Starter elfigos

    (@elfigos)

    Thank you for the reply, I have sent you an email.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional custom fields permalink’ is closed to new replies.