wordpress path generation from rewrite rule
I have set a custom rewrite rule. The url gets parsed and loads the correct page. When the same page is added in the menu editor, it does not generates the different path. I want that my same rewrite rule should be used to create the post url.
If there is a function/hook/filter which is called with the post object, then my callback will prepare the correct URL. But I cannot get hook like the_permalink
to work in that way since my callback is called with the final path and without the post object.
Please suggest how can this be done?
Topic rewrite-tag rewrite-rules url-rewriting Wordpress
Category Web