WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] displaying custom post type (5 posts)

  1. HGI
    Member
    Posted 1 year ago #

    hi, I want to display custom post type and I am using your shortcode like so

    To display custom posts "property" with tag zzzz

    [display-posts post_type="property" tag="zzzz"]

    but nothing is showing up...did I use that correctly?

    http://wordpress.org/extend/plugins/display-posts-shortcode/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    Are you sure the "post_tag" taxonomy has been added to that post type? The tag taxonomy you're seeing might be using a different name.

    Go to Properties > Tags, then look at the URL. It should include ?taxonomy=post_tag. If it has something else, you'll need to use the taxonomy parameters. If it said property_tag, you'd do:

    [display-posts taxonomy="property_tag" tax_term="zzzz"]

  3. HGI
    Member
    Posted 1 year ago #

    I misspoke, but I did figure it out..had to tweak your code to get this:

    [display-posts post_type="property" taxonomy="ptags" tax_term="zzzz"]

    and now it works!!!!

    Thanks so much, Bill.

    One more thing, if I wanted an image to be displayed as a thumbnail, any chance of that?

    Thanks

  4. HGI
    Member
    Posted 1 year ago #

    adding
    image_size="thumbnail"
    does not work even if I add a featured image to that custom post

  5. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    The image size parameter should work. I recommend you switch (briefly) to the default WordPress theme TwentyEleven and see if the image shows up. If it does, that means the issue is with your theme. If it doesn't, then the issue is most likely with a plugin you have installed, or you haven't properly added the featured image.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic