Grow your CSS skills. Land your dream job.

WordPress: how to place Custom Post with Custom Fields in widget area

  • # July 2, 2013 at 3:02 pm

    I’m sure I can figure this out if I look or try for a few hours, but who knows some of you may know of a shortcut.

    In my WP install, I have a custom post type with custom fields (it’s for events, so the user can enter an event title, event description and date). I want to give the user the option to add events to any widget area.

    It should work much like adding a menu to a widget area: with those you drag and drop the “Custom Menu” widget to the widget area and then you can select which menu you want to display. I’d like to drag and drop an “Event” widget to the widget area and then let the user select which event should be shown.

    (of course, I will have to do some coding to make sure the title, description and date is displayed properly).

    Anybody know if there is a simple plugin for this or will I have to code this manually?

    # July 2, 2013 at 3:35 pm

    Addition: I’m now using this plugin to show custom posts: http://wordpress.org/support/plugin/custom-post-widget , but I have no idea how to get the custom fields to display. Argh

    # July 2, 2013 at 3:56 pm

    Ha! Found it in the meantime. So never mind :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".