• Resolved Manish

    (@nims)


    I am trying to display latest posts from custom post type category but there is no such option in the widget.
    How can I show custom post types ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor zymeth25

    (@zymeth25)

    Yes, there is no such option in the widget and we are not planning to add it because the widget is not being developed further. Instead please use a shortcode in a text widget or the GUI for LCP plugin. You can easily achieve what you need with those tools.

    Thread Starter Manish

    (@nims)

    Thanks but the shortcode also doesn’t work.

    Plugin Contributor zymeth25

    (@zymeth25)

    What is the shortcode you used?

    Thread Starter Manish

    (@nims)

    When I use [catlist post_type=ad_listing numberposts=7] it shows post type ad_listings but around 25-30 and not 7 as required.
    When I use [catlist post_type=ad_listing numberposts=07 id=555] it shows nothing. The taxonomy id (custom category id) is 555.
    When I use [catlist post_type=ad_listing numberposts=07 name=”Casting calls”] shows same 25-30 custom posts ad_listings.

    I need to show 7 custom posts from taxonomy Casting Calls.

    Plugin Contributor zymeth25

    (@zymeth25)

    It seems you have used the post_type parameter correctly but you misunderstood how custom taxonomies work with the LCP plugin. Have another look at the documentation. The parameters you need to use are taxonomy and terms, not name or id which are reserved for categories.

    Regarding the numberposts issue, this is most probably a conflict with your theme. We will try to make the plugin resistant to theme interference in the future.

    Thread Starter Manish

    (@nims)

    Works perfect now. Thanks ??

    • This reply was modified 4 years, 1 month ago by Manish.
    • This reply was modified 4 years, 1 month ago by Manish.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to show custom post types’ is closed to new replies.