admin管理员组文章数量:1315850
I want to add a podcast mp3 link to each post. Instead of copying and pasting the URL the four times it is linked around the page, I want to be able to create a custom input box (like Featured Image) so it can be pasted once and then referenced on the page code. Is this possible?
I want to add a podcast mp3 link to each post. Instead of copying and pasting the URL the four times it is linked around the page, I want to be able to create a custom input box (like Featured Image) so it can be pasted once and then referenced on the page code. Is this possible?
Share Improve this question asked Nov 20, 2020 at 15:31 user197844user197844 11 Answer
Reset to default 0You are talking about post_meta data - information stored about a page or post which is not part of the standard fields - title, content, image etc.
WP has support for post_meta built-in, but you might not be able to see it - perhaps the "custom fields" panel is hidden or you have create a new custom post type and not added support for custom fields.
Try the "screen options" in the top right, or check the features supported by the post type - if missing, you can add additional support either via add_post_type_support
or updating the code used to register the post_type.
Custom field ( post_meta ) data can be retrieved using the get_post_meta
function - the same data can be loaded once and re-used several times within the same template.
本文标签: How can I add a URL link to my post type
版权声明:本文标题:How can I add a URL link to my post type? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741976661a2408163.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论