• I want to create a kind of classified page on our dog club page. New litters are to be shown in a list. Each litter should have a set of fields (breeder name, contact info, father, mother, expected date of delivery). I’ve looked at custom post types but that does not present a form with all the fields I want to have, and have them required.

    Breeders should be able to add, edit and remove their litter ads.

    Is there a standard way to add such custom record types into wordpress?

    • This topic was modified 5 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Yes, meta boxes. I recommend one of the custom fields plugins. They allow you to easily add fields for custom data like that. They’ll handle the meta box coding part for you so you can focus on the fields you want. I’ve used Advanced Custom Fields a little bit. It’s very popular. There are a number of similar plugins, you may like some other one better than ACF.

    The data gets saved into the meta table for the related object, usually postmeta. Having the data saved is good, but it’s not shown to anyone unless something is added to post templates or content. The plugin ought to have functions and shortcodes to facilitate that as well.

    I’m not sure how well the plugin would help you qualify queries by post meta. If nothing else, use the “meta_query” argument when making a new WP_Query object.

Viewing 1 replies (of 1 total)

The topic ‘Create user editable classified ads’ is closed to new replies.