• Resolved jdobbsy1987

    (@jdobbsy1987)


    Hi,

    This is a follow-up to – https://wordpress.org/support/topic/acf-value-in-tablepress-filter/#post-15949240
    I did reply there but didn’t see to bump up so wasn’t sure if you would see it.

    The above solution worked however the structure of the site wasn’t ideal so I have changed it so the pages in question are now in a catalogue plugin.

    Since doing this though, the table data doesn’t appear to be pulling through so suspect it is to do with the nested shortcodes again as this time, in order for the product catalogue page to display the information I needed to use the Elementor shortcode which meant another shortcode being nested.

    I tested this theory by installing the new 2.0 Dev plugin and displaying the table via the block and the table shows, making me think it is shortcode related.

    I am happy to try and switch to using the block editor for this however wondered if you had documentation on the 2.0 “Configuration parameters” as I need to be able to achieve the equivalent of this…

    [table-acf id=3 filter="Screen Repair" acf_field=model_code filter_columns="6-7" row_order=sort row_order_sort_column=G row_order_sort_direction=ASC filter_full_cell_match=true /]

    Is this possible in 2.0 using the block parameters, if yes, what is the format to enter them?

    It looks like it should be something like this

    filter="Screen Repair" acf_field="model_code" filter_columns="6-7" row_order="sort" row_order_sort_column="G" row_order_sort_direction="ASC" filter_full_cell_match="true"

    However it doesn’t appear to work, im not sure if its to do with the ACF/function in the above post?

    Here is the test page with it on – https://wordpress-482191-2563283.cloudwaysapps.com/compare-repair/repair-comparison/samsung-s22-repair/

    I’d expect to only see 2 results (ignore the horrible layout, im figuring that out).

    Thanks,
    Jamie

    • This topic was modified 3 years, 8 months ago by jdobbsy1987.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jdobbsy1987

    (@jdobbsy1987)

    As im having issues with tablet formatting it would be good to continue using the elementor shortcode if there is a fix for that?

    The page is now back to using this shortcode as per the original link above

    [table-acf id=3 filter="Screen Repair" acf_field=model_code filter_columns="6-7" row_order=sort row_order_sort_column=G row_order_sort_direction=ASC filter_full_cell_match=true /]

    So essentially its a product catalogue page, using an elementor shortcode and within the elementor template is the above tablepress shortcode

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I’m not really sure how I can help here, I’m afraid. Nothing has changed in regards to the Shortcode handling in TablePress, so the cause for this must be something else.

    Now, your derivation of how the “Configuration parameters” are added is correct. It’s exactly the same stuff that can be inside a Shortcode, between the [table id=123 and /] parts.

    However, TablePress only brings a block that does the same as the original [table ... /] Shortcode — so that could be replaced by the block. You are however using that custom wrapper Shortcode [table-acf ... /]. For that, there’s no block, so you will have to continue using the [table-acf ... /] Shortcode.

    I can only really recommend to go step by step here, like first using a regular [table ... /] Shortcode, then something with a static filter term, then checking if that ACF Shortcode works on its own, etc.
    For seeing all parameters that are actually applied, you can add the shortcode_debug=true parameter to the Shortcode as well. Below your table, you will then get a list of all applied settings, which is useful for checking what filter value was used, etc.

    Regards,
    Tobias

    Thread Starter jdobbsy1987

    (@jdobbsy1987)

    Ah, got the shortcode working now… it was nothing to do with Tablepress sorry.

    ACF was set to show the custom field for “Products” which is what allowed me to set the customer values however on the front end they were loaded on a catalogue post type, not product post type so just needed to tell ACF to display on catalogues.

    Thank you for your response, support is much appreciated.

    Also, I’m using Version 2.0 beta on my test site, the new editor looks really good.

    Regards,
    Jamie

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    awesome! Great to hear that you found the cause. Yes, custom post types can be a hassle sometimes…

    And even better to hear that you like the new editor in TablePress 2.0 🙂 Thanks for testing the beta!

    Best wishes,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘ACF Field – v2.0-Dev Update’ is closed to new replies.