mysql - How to add permalinks in wordpress database with PHP script? -


i want insert in database custom php script server, posts need insert permalinks , don't know how.

in wordpress platform have permalink structure localhost/%postname%/ . when post script in wordpress database, title , description ok when want access new post can't because have no permalinks.

i have try insert in wp_posts->post_name(in database) custom permalinks directly post-test-post.

now can access post localhost/post-test-post/ , ok if want update post wordpress site new post have scheduled status , in edit area permalink ok http://localhost/post-test-post/ after press view post, see in browser shortpermalink localhost/?p=313 want same localhost/post-test-post/

can me ? thank you!


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -