• Hi.
    Let’s say I want to make a company website. 4 departments, each with 4 subdepartments. 3 employees pr. department. Each department gets a page, and in the right sidebar, I display the contact info to each employee.
    I would very much like to keep this contact data, let’s call them employee cards, out of pages and posts, so I’m fantasizing about creating a custom post type for it. Which I’ve done actually, and now I need to pull this data (employee card) and display it in the respective page’s sidebar. I was thinking via text widget, or better yet, the ‘My Snippets’ plugin, since each employee is only meant to show up on one page.

    Which brings me to the problem, the short version – well, I’m stuck.

    Any idea how to pull the data and publish it in the text widget?
    Or, is the approach no-good?

    (As you’ve probably figured out by now, I’m pretty php illiterate. Working on improving that, but the journey is a slow one)

    : )
    Kind regards
    Thorir V

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘display custom post type in sidebar widget’ is closed to new replies.