Created widget to pull data from custom post type. Can't display custom field
-
Hello, sorta new to making a widget, followed a tutorial. I have created a band website with WordPress and I have a custom post type for creating releases called “music”. I made a plugin and widget so on the sidebar, the user can drag a “latest release” widget to the sidebar.
I created the widget and it pulls the featured thumbnail and title fine. But I need it to also display a custom field called “releasedate”.
here is my code, everything works except the echo to display the custom field data. help?!
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
- The topic ‘Created widget to pull data from custom post type. Can't display custom field’ is closed to new replies.