WordPress.org

Ready to get started?Download WordPress

Forums

Help with slug suffix (3 posts)

  1. ecko911
    Member
    Posted 2 years ago #

    I have a code which automatically creates and inserts post_name into mysql for my posts. The problem comes up when i realize that if i have duplicate slugs the suffix is not added. Here is my code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    What i must add in my code to add suffix for duplicate slugs?.

  2. ecko911
    Member
    Posted 2 years ago #

  3. ecko911
    Member
    Posted 2 years ago #

    can anybody help me?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.