• Resolved John Kostly

    (@johnkostly1)


    I got a content type called “toy-types”

    I want to add it to WooCommerce. I will then have a custom post type with toy-types as well.

    I want to show the woocommerce products that have the same categories as the custom post type.

    These are the hooks I am using:
    add_filter( ‘uagb_post_query_args_grid’, ‘filter_post_query’, 12, 2 );
    add_filter( ‘uagb_post_query_args_masonry’, ‘filter_post_query’, 12, 2 );
    add_filter( ‘uagb_post_query_args_carousel’, ‘filter_post_query’, 12, 2 );

    They seem to work for post content, and possibly pages, but not woocommerce products.

    What am I doing wrong, I tried uagb_product_query_args_grid as well as uagb_post_query_args_product

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support mohsinbsf

    (@mohsinbsf)

    Hi @johnkostly1,

    Thanks for getting in touch with us.

    Please let me know which block you are using for the products and the hooks that you tried by yourself ( uagb_product_query_args_grid as well as uagb_post_query_args_product ) do not belong to the Spectra.

    Looking forward to hearing from you.

    Have a nice day!

    Thread Starter John Kostly

    (@johnkostly1)

    @mohsinbsf I fixed it, the hooks above are right. I’m not sure what I did wrong, but eventually I started getting it to work.

    add_filter( ‘uagb_post_query_args_grid’, ‘filter_post_query’, 12, 2 );
    add_filter( ‘uagb_post_query_args_masonry’, ‘filter_post_query’, 12, 2 );
    add_filter( ‘uagb_post_query_args_carousel’, ‘filter_post_query’, 12, 2 );

    Got a different bug, but will file another issue.

    Do you have documentation and a link to it about all the hooks for spectra @mohsinbsf ? I’m developing a theme for astra pro and spectra ( blog style.) I’m using the uagb post widget.

    Plugin Support mohsinbsf

    (@mohsinbsf)

    Hi @wpscriptly,

    We have a documentation where we have mentioned all the provided hooks: https://wpspectra.com/docs/filters-actions-for-post/. Please feel free to open a new thread if you face any issues.

    Have a nice day!

    Hi @mohsinbsf, sorry to bother you.

    I have a code that manages email distribution by rotating through a list of addresses based on a counter value stored in the database. It sends form submission data to different email addresses, updates the counter, and wraps it around after reaching 9. This function is triggered each time a form is submitted.

    The issue with the code is that the hook for the form submission is not correctly identified or available. As a result, the function cannot be properly triggered at the time of form submission. Without the correct hook, the email handling function won’t execute when the form is submitted, so the emails won’t be sent as intended.

    I can’t find which is the correct hook for form submission, can you help me with that information, please? Thanks!

    Plugin Support mohsinbsf

    (@mohsinbsf)

    Hi @itsreck,

    Would you please start your own thread?

    Let’s help the forum stay “clean” as per the forum guidelines.

    Have a nice day!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.