• Resolved mayanmisfit

    (@mayanmisfit)


    So I’ve been looking for plugins that add a custom post type widget, however all I can find are widgets that output lists.

    What I need is a widget that outputs the content of a post type. No title, no meta, just the content.

    Can anyone show me how to put this together please? The post type is called StrapLine

Viewing 3 replies - 1 through 3 (of 3 total)
  • Use Display Posts Shortcode plugin, it provides many possibilities to pull out content (see Available Parameters). In this case, just use it with your selected post type and indicates not to display title or anything. Just so you know, since WordPress 4.9 widget area allows shortcode automatically, so there is no need for user to enable it via function.

    Display Posts Shortcode
    https://wordpress.org/plugins/display-posts-shortcode/

    Thread Starter mayanmisfit

    (@mayanmisfit)

    That was quick, thanks for the reply.
    That plugin looks like it will do the trick, I’ll take a look when I get in from work tonight.

    Thread Starter mayanmisfit

    (@mayanmisfit)

    This actually worked a lot better than expected, thanks for the heads up

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

The topic ‘Custom post type widget’ is closed to new replies.