V
V
Vadim Sverdlik2020-06-16 10:49:02
WordPress
Vadim Sverdlik, 2020-06-16 10:49:02

How to make a shortened url when creating a post?

Now, by default, when adding a record, its url becomes the same as the title (only in Latin), but you need to somehow make the url cut to 3 words, due to SEO. What is the best way to do this? I tried to insert in functions.php

function new_excerpt_length($length) {
  return 3;
}
add_filter('excerpt_length', 'new_excerpt_length');


did not help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-06-16
@vadim_sverdlik

by default, when adding a record, its url becomes the same as the name (only in Latin),

This is not standard behavior. By default, the url takes the title unchanged. And one of the plug-ins turns it into Latin. In it, you can see how to modify the url
https://github.com/aries-ck/wpplugin-cyr-to-lat/bl...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question