I want to create a shortcode to call the latest listnings not only by category like it is possible in standard … i also want to select e.g. the value of a "eigenschaft"in german… a other property I gave the listning.
I want to set: category, property, number of items to show, ordering of items
If you’re referring to filtering listings by custom attributes and the attribute is of the Select type, please make sure it’s marked as filterable. Once enabled, it will appear in the block settings for listings.
Could you also clarify why you decided to use shortcodes? Are you working with a third-party page builder? If not, we recommend using blocks instead, since all settings are available and much easier to manage there.
Beside of the Kategorie I want to be able to filter it to any other attribute I have set and filter it here.
Those are the standard Options you see here.
This is because checkboxes allow multiple selections, and that type of UI is not currently available in block settings. We are planning to add it in the future. For now, we can provide general guidance on how to achieve this if you’re familiar with coding or have a developer.
Please try using the pre_get_posts WordPress hook to alter the listing query. In the callback function you add for this hook, you can check if the post type is “hp_listing”, for example via $query->get('post_type') and that it’s not the main query. Also, depending on the page you can add extra conditions, for example if it’s the home page is_front_page()