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

  1. HGI
    Posted 3 years 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?


  2. Bill Erickson
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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?


  4. HGI
    Posted 3 years ago #

    does not work even if I add a featured image to that custom post

  5. Bill Erickson
    Plugin Author

    Posted 3 years 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

  • Display Posts Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic