Using WCK Custom Post Type and Custom Fields
-
Hi, I’ve created a couple custom post types using WCK, all of them have unique custom fields too. I’m trying to create a list of this custom posts with their custom fields.
Each time I create a new object with my custom form, it is added to the ‘wp_postmeta’ table, for example:
-
meta_id: 17123
post_id: 772
meta-key: article-info
meta_value: a:1:{i:0;a:4:{s:4:”year”;s:4:”2009″;s:8:”original”;s:64:”https://www.newsweek.com/why-religion-may-not-be-hard-wired-78555″;s:11:”author-link”;s:0:””;s:6:”author”;s:13:”Sharon Begley”;}}Is there a way to access this fields using your plugin’s shortcodes?
I tried something like this:<ul>[posts] <li> [title] [post_meta key="article-info"] [excerpt wordlimit=20] [more] </li> [/posts]</ul>
How far am I from the right syntax?
Thanks for your time!
https://www.ads-software.com/plugins/wck-custom-fields-and-custom-post-types-creator/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Using WCK Custom Post Type and Custom Fields’ is closed to new replies.