I am very new to WordPress. How can I use post custom metadata in place of Post Titles, and as the Post Permalink? For example, instead of domain.com/the-post-title
, the permalink would be domain.com/$postcustommetadata
.
I posted my idea in the WPORG support forums. I have a general idea, but don’t know how to implement it, because I don’t yet fully understand WordPress conventions, classes, etc.
Thanks
Plzz HeLp
This will do.
The slug is saved on the wp_posts while custom fields are on the wp_posts_meta. If you want to make it like that you can use an action hook on save_post that will get the value of the custom fields and saves it as the post slug.
Here is the code
If you’re looking for customizing the permalink for specific posts, pages or categories, try the Custom Permalinks plugin. I’ve had much success with it before.