• Hi there,

    I’m trying to generate a nice an nifty XML from a custom post type (listings from WP-Listings). I pretty much have the XML going, as it is spitting out data from the different Listings, but it’s only spitting out the standard fields like “title” and “description”. I understand there is some PHP missing to display the custom fields like “price”, “address” and so forth, but I have no idea where to put it.

    Do you guys have any idea?

Viewing 1 replies (of 1 total)
  • Your regular fields, are in the wp_posts table, which is where you store the results of a saved custom post type. When you add custom fields, those values are stored in the wp_postmeta table and related to the wp_posts using the post_id.

    You can take the time to develop a custom query using a JOIN to pull all the fields you want to track for your custom post and then display them where you want them.

Viewing 1 replies (of 1 total)
  • The topic ‘Creating XML custom post type’ is closed to new replies.