Custom post type permalink missing /post_type/ front

In my case I was trying to get the permalink before I had set up the post types.

I double checked the Action Reference:
https://codex.wordpress.org/Plugin_API/Action_Reference

And updated the hooks I was using to trigger my theme setup. Once done, the get_permalink worked as expected.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)