I have a custom field called “song-id” and I’d like to lookup a post by a song-id value. Can someone give me the code snippet for it?
(bonus: also looking for a code to use the permalink in the post to redirect to that page)
I have a custom field called “song-id” and I’d like to lookup a post by a song-id value. Can someone give me the code snippet for it?
(bonus: also looking for a code to use the permalink in the post to redirect to that page)
You must be logged in to post a comment.
You can use above code to query with custom field then use loop to get the contents.