• Hi
    I have over 200000 tags in my site and i would like to add tag’s id to tags link
    for example:
    mysite.com/tag/id/name
    could you please help me is there any function code for this
    thanks

    • This topic was modified 2 years, 8 months ago by mojtaba7b.
    • This topic was modified 2 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 3 replies - 1 through 3 (of 3 total)
  • it sounds like you want to modify the permalinks. Before writing code to customize WordPress, trying Settings > Permalinks and see if you can do what you want from there.

    Thread Starter mojtaba7b

    (@mojtaba7b)

    for example i have tag the name is messi’ in database id for messi tag is 65 i would like authomatically add the id to slug of tag same as this: mysite.com/tag/65/messi

    • This reply was modified 2 years, 8 months ago by mojtaba7b.

    Well to do that exactly you will need to find and install a plugin OR write custom code. The closest solution that is built in is to select ‘Custom Structure’ on the aforementioned permalinks page and write in the field “/tag/%post_id%/%category%”. This is not an exact solution that matches what you are asking but it is the closest built-in functionality.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘customise tag’s link with tag’s ID’ is closed to new replies.