• Resolved KC

    (@benxy20gylinxu)


    To whom it may concern:

    I have 2 questions please.

    One, if I want to show a table of selected items of a custom post type, how do I do that? Is there a shortcode example?

    Two, if I want to show a table of selected posts based on certain value of custom field, how do I do that? Is there a shortcode example?

    Regards,

    KC

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Barn2 Plugin Support

    (@barn2pluginsupport)

    Hi @benxy20gylinxu ,

    Thanks for your comment. You can do this with the premium plugin, Posts Table Pro.

    (1) You can use the post_type option option to do this.

    Sample: [posts_table post_type=”page”]

    (2) You can use the cf=”<field name>:<field value>” format to select posts based on a custom field value.

    Sample: [posts_table post_type=”car” cf=”color:blue,make:audi”]

    We hope this helps! Please let us know if there’s anything else we may help you with.

    Thread Starter KC

    (@benxy20gylinxu)

    Hi @barn2pluginsupport:

    Thanks for your reply, I will try out the methods as you mentioned.

    And I will set this thread solved for now, but I could come back if I have had derivative question of this. Thanks again.

    Regards,

    KC

    Plugin Support E.J. Padero

    (@barn2support)

    Hello, @benxy20gylinxu .

    Thanks for your understanding. I’m glad we could help!

    Yes, please – should there be anything else that we may assist you with, just let us know. For quick reference, you can also browse our detailed and extensive plugin Knowledge Base articles for:

    You can try our premium plugin on your site completely risk-free, thanks to our full 30-day money back guarantee. This lets you buy the plugin and try it for up to a month, and get a full refund if you’re unhappy with it or if it doesn’t suit your needs. Should you have any questions or difficulty, just get in touch with our friendly support team and we’ll either help you out until you get the results you need or give you a swift refund.

    When you’re ready, you can buy the plugin from this link: https://barn2.co.uk/wordpress-plugins/posts-table-pro/ .

    Best regards and stay safe,

    Thread Starter KC

    (@benxy20gylinxu)

    @barn2support
    Noted, thanks, our team is definitely considering to buy pro, but we are on a hurry to get thing done(producing the result as we needed) for the time being.

    @barn2pluginsupport

    In 2nd scenario, I was talking about the shortcode in WordPress default post type “post”, could you help to provide an example for post? Thanks.

    Regards,

    Thread Starter KC

    (@benxy20gylinxu)

    Hi there:

    In second scenario, your shortcode example use “color”, is that the custom field “Post Type Slug” or Lable?

    By the way, in my case, I am using custom taxonomy for drawing data, just so you know. Thanks for the help.

    • This reply was modified 3 years, 3 months ago by KC.
    Thread Starter KC

    (@benxy20gylinxu)

    Hi there,

    I just created a custom post type for this test session in order to fit your 2nd shortcode example, and I worked out the shortcode and the answer of my own question is that the “color” part, it is label according to my latest test.

    But could you please tell me what is the shortcode for the filed of custom post type so I can show them? It is now showing default columns of Posts(known shortcut as “columns”). Thanks for all the trouble.

    Thread Starter KC

    (@benxy20gylinxu)

    Hi there,

    I thought I worked it out the “color” part, but I just found out I did not, I’m still trying. Sorry about posting a series of replies, I tried to modified but the system won’t allow me.

    Plugin Support Barn2 Plugin Support

    (@barn2pluginsupport)

    Hi @benxy20gylinxu ,

    Thanks for your follow-up.

    The free Posts Table with Search & Sort plugin, allows you to display only the Posts post type.

    In my sample post table shortcode (using the pro version – Posts Table Pro): [posts_table post_type=”car” cf=”color:blue,make:audi”]

    – the color part in cf=”color:blue,make:audi”, refers to the custom field value, which you have asked about in your first comment.

    You can add custom fields to your table using the format cf:<field name>. Please see Custom field columns. This option requires the use of the Pro version.

    To see the difference between the free and pro version (as well as what you can do with these 2), please see: Posts Table plugins – Free & Pro comparison.

    We hope this helps! Please let us know if there’s anything else we may help you with.

    Thread Starter KC

    (@benxy20gylinxu)

    Hi there,

    I will read closely to your latest reply later, I am occupied now.

    BTW, what is the different between Email Support and Priority Support in Pro version?

    Plugin Support Barn2 Plugin Support

    (@barn2pluginsupport)

    Hi @benxy20gylinxu ,

    You can reach us via our Support Center. When you buy a Business or Agency license, you will receive Priority Support from our expert support team. For more info, please see: What is priority support?

    Please let us know if there’s anything else we may help you with.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to show selected posts from Custom Post Type and/or Custom Field?’ is closed to new replies.