How do people present 'directory' type of info using WP? (3 posts)

  1. astrachan
    Posted 2 years ago #

    Please take a look at this screen grab of a directory area I recently built:


    I put that together using a column shortcode to slot the image in, and I formatted the text manually. That isn't very useful when it comes to handing the site over to the client - it means they have to deal with a Page that's full of shortcodes and adding a new entry is very fiddly.

    So another way would be to use Posts for each entry, then categorise them and have them pulled into an index template that lists the posts without meta data or a link to the single post page. This seems clumsy too - it means your Posts admin page is full of all this data, along with News and Blog posts.

    So - how do people present data such as this using WordPress? Should I use something like the Links Manager and modify it to include images? I should mention that I would also like to be able to categorise directory entries to be able to pull them into specific pages.

    Any help greatly appreciated!

  2. lettergrade
    Posted 2 years ago #

    Yes, you're totally right. It would be cleanest to use Custom Post Types so that your directory listings each have their own entry, and have templates to deal with the display, but are kept separate from the regular posts.

    Custom Post Types in the Codex
    The Complete Guide to Custom Post Types (Smashing)

  3. astrachan
    Posted 2 years ago #

    Thank you - that looks like it's going to be the answer!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.