• Do you have any suggestions for creating different filters for posts that are traditional blog posts and posts that are of another type (such as WooCommerce products) in the back end (admin) area? The answer might be right in front of me but I’m just not seeing it. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter MeTP

    (@metp)

    I’m afraid I might not have been clear enough in my question so I let me add this: I know there’s a “product” post type and “post” post type, but in the back end (the admin editing area) products are posts, just like blog posts are posts. Since (as I understand it) we can’t use wildcard characters in our permalinks, I can’t find any way to create a filter than can tell when I’m editing one or the other. I hope that clears up any confusion my first question may have caused.

    Plugin Author Jeff Sterup

    (@foomagoo)

    Products are not posts and vice versa. Products are a post type of type product and posts are a post type of type post. They should both have different permalink structures. You must enable both post types on the plugin organizer settings page. Then you can disable plugins for each post or product individually from their edit page. You can also use limited wildcards and fuzzy permalink matching. So for products with the permalink https://www.somedomainyouown.com/product/thisproduct/ and https://www.somedomainyouown.com/product/thatproduct/ you could set up a plugin filter with the permalink set to https://www.somedomainyouown.com/product/ and check the also affect children checkbox. Then all url’s that start with https://www.somedomainyouown.com/product/ would be affected.

    Thread Starter MeTP

    (@metp)

    I’m confused I guess. The product post-type filter works fine on the front end but I’ve also enabled the Selective Admin Plugin Loading option – the description for which indicates that this filter should also work when I’m editing a product. It doesn’t. In my case the two plugins that are disabled for the product post-type are disabled (as they should be) on the front end but not disabled on the back end.

    When you’re editing a product the URL is something like this:

    https://www.mywebsite.com/wp-admin/post.php?post=44485&action=edit

    No matter what I do, I can’t disable the two plugins in question IN THE ADMIN SECTION unless I disable them globally or disable them for a specific URL which isn’t reasonable with hundreds of products.

    I have no filters at all right now except the product post-type filter to ensure that there’s no conflict happening.

    Sorry I’m not getting this. I’m sure there must be a simple solution but it eludes me.

    Here’s my configuration:

    Fuzzy URL matching is enabled.
    URL Protocol will be ignored. https:// will be treated the same as https://
    URL Arguments will NOT be ignored. https://www.poparrots.com?test=test will NOT be treated the same as https://www.poparrots.com
    Any admin will be able to change the plugin load order.
    Trailing slashes will NOT automatically be removed or added.
    Post types saved.
    Enabled roles saved.
    Selective Plugin Loading is enabled.
    Selective Mobile Plugin loading is disabled.
    Selective Admin Plugin Loading is enabled.
    Disable Plugins By Role is disabled.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Differentiating between blog posts and WooCommerce products in admin’ is closed to new replies.